A variable is a named data storage location in your computer’s memory. By using a variable’s name in your program, you are, in effect, referring to the data stored there. VARIABLE NAMING CONVENTION To use variables in your C programs, you must know ho to create variable names in C,variables names must adhere to the following rules: • The name can contain letters, digits, and the underscore character(_). • The first character of the name must be a letter. The underscore is also a legal first character, but its use is not recommended. • Case matters (that is uppercase and lowercase letters). Thus, the names count and Count refer to two different variables. • C keywords can’t be used as variable names. A keyword is a word that is part of the C language.
0 comments:
Post a Comment