Wednesday 23 February 2011

Identifier naming rule in c




In c any name is called identifier. This name can be variable name, function name, enum constant name, micro constant name, goto label name, any other data type name like structure, union, enum names or typedef name.




Rule 1:  Name of identifier includes alphabets, digit   and underscore.







Valid name: world, addition23, sum_of_number etc.






Invalid name: factorial#, avg value,

No comments:

Post a Comment