Friday, May 16, 2008

Rules for constructing variables names

Rules for constructing variables names

There are some specific rules for constructing variable names in C language:

(a) Variable name may be a combination of alphabet digits or underscores and its lengths should not exceed 8 characters, some compilers allow 40 characters also.

(b) The first character must be an alphabet.

(c) No comma, blank spaces are allowed in variable name.

(d) No special symbols except underscore can be used as variable names.

0 comments:

Copyright

Copyright © 2008 C Tutorial, All rights are reserved