![](https://csdnimg.cn/release/download_crawler_static/86565611/bg3.jpg)
例如 printf( "What??!/n" );会输出 what|
18 Identifiers (internal and external) shall not rely on the significance of more than 31 characters
19 Identifiers in an inner scope shall not use the same name as an identifier in an outer scope, and therefore hide
that identifier.
20 A typedef name shall be a unique identifier.
这句说用 typedef 定义的别名必须是唯一的
21 A tag name shall be a unique identifier.
22 No object or function identifier with static storage duration should be reused.
23 No identifier in one name space should have the same spelling as an identifier in another name space, with
the exception of structure and union member names.
24 No identifier name should be reused.
25 The plain char type shall be used only for the storage and use of character values
26 Signed and unsigned char type shall be used only for the storage and use of numeric values.
27 Typedefs that indicate size and signedness should be used in place of the basic types
这句是说不要用 C 的基本数据类型, 最好用 typedef 重定义.
28 Bit fields shall only be defined to be of type unsigned int or signed int.
29 Bit fields of type signed int shall be at least 2 bits long.
30 Octal constants (other than zero) and octal escape sequences shall not be used.
31 Functions shall have prototype declarations and the prototype shall be visible at both the function
definition and call.
32 Whenever an object or function is declared or defined, its type shall be explicitly stated.
33 For each function parameter the type given in the declaration and definition shall be identical, and
the return types shall also be identical.
评论0