Names

Names are used to identify variables and other components of C programs. They must start with a letter followed by letters, digits or both. The characters '_' may also appear in names.

Some examples:

i              j12               X
nchars         numberOfChars   Student
square_root    squareRoot      Bool
Upper and lower case are distinguished.

C has 32 reserved words (keywords) that you cannot use as names.

Index