Character set is a set of alphabets, letters and some special characters that are valid in C language.
Uppercase: A B C ................................... X Y Z Lowercase: a b c ...................................... x y z
C accepts both lowercase and uppercase alphabets as variables and functions.
0 1 2 3 4 5 6 7 8 9
White space Characters
blank space, new line, horizontal tab, carriage return and form feed
Keywords are predefined, reserved words used in programming that have special meanings to the compiler. Keywords are part of the syntax and they cannot be used as an identifier. For example:
Here, int is a keyword that indicates 'money' is a variable of type integer.
As C is a case sensitive language, all keywords must be written in lowercase. Here is a list of all keywords allowed in ANSI C.
Along with these keywords, C supports other numerous keywords depending upon the compiler.
All these keywords, their syntax and application will be discussed in their respective topics. However, if you want a brief overview on these keywords without going further, visit list of all keywords in C programming.
Identifier refers to name given to entities such as variables, functions, structures etc.
Identifier must be unique. They are created to give unique name to a entity to identify it during the execution of the program. For example:
int money; double accountBalance;
Here, money and accountBalance are identifiers.
Also remember, identifier names must be different from keywords. You cannot use int as an identifier because int is a keyword.
You can choose any name for an identifier (excluding keywords). However, if you give meaningful name to an identifier, it will be easy to understand and work on for you and your fellow programmers.