版本1和3间的区别 (跳过第2版)
于2007-07-18 22:16:16修订的的版本1
大小: 671
编辑: czk
备注:
于2008-02-23 15:34:06修订的的版本3
大小: 713
编辑: localhost
备注: converted to 1.6 markup
删除的内容标记成这样。 加入的内容标记成这样。
行号 1: 行号 1:
## page was renamed from TCPL/A.6.7 Void

A.6.7 Void

The (nonexistent) value of a void object may not be used in any way, and neither explicit nor implicit conversion to any non-void type may be applied. Because a void expression denotes a nonexistent value, such an expression may be used only where the value is not required, for example as an expression statement (Par.A.9.2) or as the left operand of a comma operator (Par.A.7.18).

An expression may be converted to type void by a cast. For example, a void cast documents the discarding of the value of a function call used as an expression statement.

  • void did not appear in the first edition of this book, but has become common since.

TCPL/A.06.7_Void (2008-02-23 15:34:06由localhost编辑)

ch3n2k.com | Copyright (c) 2004-2020 czk.