1. C Character Set
Character denotes any alphabet, digit, or special symbol used to represent information.
Valid alphabets, number, and special symbols in C are:
Alphabets - A,B,...,Z
a,b,....,z
Digits - 0,1,2,3,4,5,6,7,8,9
Special Symbols - ~ ‘ ! @ # % ^ & * ( ) _ - + = | \ { } [ ] : ; " ' < > , . ? /
2. Constants, Variables, and Keywords
a. Constants
Constants are the entity that has a fixed value and it can be held by a variable e.g. 35, 50, etc.
b. Variable
Variable is the entity whose value may change during the execution of the program.
It is the name of the memory location which can hold different values at different times.
For example:
c. keywords
The words whose meaning is already explained to the C compiler are known as C keywords.It can not be used as a variable.
The 32 variables in C are given below:
0 Comments