Constant, Variables and Other Definations
Constant, Variables and Other Definations
OTHER DEFINATIONS
C CHARACTER SET
A Character denotes any alphabet, digit or special symbol used to represent
information.
Alphabets
A,BY,Z
a,by,z
Digits
Special symbol
0,1,2,3,4,5,6,7,8,9
!@#$%^&*()_+{}|:<>??/*-+
Token
KEYWORDS
Keywords are reserved words whose meaning is fixed by language and those are
known to the C compiler and computer means that keywords cannot be used as
variable names. There are only 32 keywords available in C which are :
Auto
Double
Int
struct
break
else
long
switch
case
enum
register
typedef
chair
extern
return
union
const
float
short
unsigned
continue
for
signed
void
default
goto
sizeof
volatile
do
if
static
while
No special symbol other than an underscore (_) can be used in a variable name.
Int roll_number
CONSTANT:
TYPES OF C Constants:
C constants can be divided into two major categories:
1. Primary Constants.
2. Secondary Constants.
Rules for Constructing Integer Constants
1.
2.
3.
4.
5.
6.
7.
REAL CONSTANTS:
Real constants are known as Floating point constants. The real constants may be
in two formsFractional form and Exponential form .
Rules;
1.
2.
3.
4.
5.
Value
Delhi
ph_values
Sum1
distance
T_raise
mark