Identifiers
Identifiers refer to the name of variables, functions, arrays, classes, etc. created by the programmer. They have the fundamental requirement of any languages. Each language has its own rules for naming these identifiers.
The following rules are common to both C & C++.
· Only alphabetic characters, digits and underscores are permitted.
· The name can’t start with a digit.
· Uppercase and lowercase letters are different.
· A declared keyword cannot be used as a variable name.
A major difference between C & C++ is the limit on the length of the name. C++ plays no limit on its length.
Sunday, April 12, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment