Lets begin our journey in C language .…….
Understanding C language is very easy and interesting . All you need to know is basic fundamentals properly.
It is very similar to understanding english language as -:
In English language we first learn alphabets , then form words from them , and then sentences and from sentences a paragraph. Similarly , while learning C we first study alphabets, digits and special symbols , then constants , variables and keywords and then instructions are formed resulting in formation of program.
![]() |
Let’s understand them one by one-:
1.) Alphabets, Digits, Special Symbols -:
These are basic character set .
2.) Constants,Variables and Keywords -:
Constants -: As we all know constants are those whose value cannot be changed . They are divided into two categories-:
a.)Primary constants
b.)Secondary constants
They are shown below by pictorial representation-:
-> Integer Constants -: Simply saying integer constants are integers . There are some rules for making
integer constants . They are-:
- Integer constants must have single digit .’
- It can be positive, negative or zero.
- It must not have decimal points.
- Range of integer constants vary from compiler to compiler . For compilers like Turbo C , Turbo C++ , range is -32768 to +32767. For Visual studio code, GCC range is -2147483648 to +2147483648.
-204
+9456
-> Real Constants -: They are also called Floating point constants . There are some rules for constructing real constants . They are -:
1.It must have a decimal point.
2.No commas or blanks are allowed within real constants
3.It could be either positive or negative.
Example-: +3.2e-5
4.48e-7
-> Character Constant -: As name suggest it contain character . It contain single alphabet, single digit, or a singe special symbol enclosed within single inverted commas.
Here both the commas should point toward left.
Example-: ‘p’
‘q’
‘1’
‘+’
Variables-:
- There should be no commas or blanks in variable name.
- First character in variable name must be alphabet or underscore(_).
No special symbols except underscore is allowed in variable name.
Keywords-:


Leave a comment