c - C中的“h = b = out”行是什么意思
问题描述
h = b = out;
/* h is the number of code points that have been handled, b is the */
/* number of basic code points, and out is the number of ASCII code */
/* points that have been output. */
我不知道这条线是否只是一种奇怪的方式来设置h
和b
等于out
OR 如果它是一个布尔表达式,设置h
等于true
(0?) if b
is already equal to out
。
解决方案
它将 h 和 b 设置为 out。布尔值将是h ? b : out;
并且意味着如果 h 为真,则 b 否则为 - 所以它没有为 h 设置任何内容
推荐阅读
- javascript - 如何使用ajax获取复选框变量?
- sql - 查询在 ssms 中有效,但在 ssrs 中无效
- ruby-on-rails - 在 ruby on rails 中将 sqlite 更改为 PostgreSQL
- python - 使用 Python 的 PI 上的 Modbus 可以工作,但只有空结果
- sql - Oracle SQL:如何在 FORALL LOOP 中添加 IF 条件
- python - 根据 pandas 中的时间戳创建交互会话
- sql - SSDT 在比较和发布中跳过 NOCHECK 约束
- assembly - 具有 32 个地址位和 16 个数据位的存储器的容量为?
- r - 如何将列表类变量更改为r中的字符串
- go - 返回 Golang 中 strings.Split() 切片的最后一项