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

A.6.8 Pointers to Void

Any pointer to an object may be converted to type void * without loss of information. If the result is converted back to the original pointer type, the original pointer is recovered. Unlike the pointer-to-pointer conversions discussed in Par.A.6.6, which generally require an explicit cast, pointers may be assigned to and from pointers of type void *, and may be compared with them.

  • This interpretation of void * pointers is new; previously, char * pointers played the role of generic pointer. The ANSI standard specifically blesses the meeting of void * pointers with object pointers in assignments and relationals, while requiring explicit casts for other pointer mixtures.

TCPL/A.06.8_Pointers_to_Void (2008-02-23 15:37:01由localhost编辑)

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