C++ Primer 随记——第 5 章,表达式

  1. 负数的位运算,符号位的处理是机器相关的。(Page 134)
  2. 有符号数的右移操作插入符号位的副本或者 0,具体由实现而定。(Page 134)
  3. 以为操作符的有操作数必须非负,并且严格小于左操作数的位数,否则,结果是未定义的。(Page 134)
  4. 只有逻辑与、逻辑或、条件运算符和逗号运算符规定了求值顺序。(Page 148)
  5. 包含 signed int 和 unsigned int 的表达式, signed int 会转换为 unsigned int。(Page 155)

疑问:

  1. 强制类型转换。
Tags:,

This entry was posted in book, Information Technology and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">