Don't use these identifiers in C program. (不要在C程序里用的标识符)

If you want to write a portable C program, you have to be careful not to give your own definitions to any of the identifiers that are reserved by the C standard. The standard tells you which identifiers are reserved, but scatters the information through a rather thick (and expensive) book. 

The basic principles of reserved identifiers are in ISO subclause 7.1.3 (ANSI section 4.1.2.1), "Reserved Identifiers". There you are warned: 

if a program declares or defines an identifier with the same name as an identifier reserved in that context .., the behavior is undefined.

That means that if your program contains a statement like "extern int log;", the compiler is fully justified in turning your terminal into a large wart hog. Yes, the standard allows (3.16/1.6) such behavior, though market forces (and the laws of physics!) might not support it. More realistically, your program may or may not work right, and you may or may not get a diagnostic message. 

This page is descripte mostly identifiers which you should not use in C program.

Comments:

Post a Comment:
Comments are closed for this entry.
About

williamxue

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today