版本2和3间的区别
于2007-07-19 07:20:06修订的的版本2
大小: 713
编辑: czk
备注:
于2008-02-23 15:34:06修订的的版本3
大小: 713
编辑: localhost
备注: converted to 1.6 markup
未发现区别!

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.