Types of tokens in C ? tokens of C language, Character Set, Keywords, Identifiers, Constants
Tokens Of C Language |
Tokens Of C Language
- Character Set
- Keywords
- Identifiers
- Constants
- Variable
- Data Types
- Operator
- Identification Name Contan Alphabets And Numbers.
- Identification Must Be Started With Alphabet.
- Can Not Used With Special Symbols And Space. (“ _ ” Underscore )
- Keywords Are Not Used For Identification.
_26xyz
4]
Constants :- Are Frix Value Can Not
Change During The Program Execution.
Constants |
1) Primary
`A) Numerical
1] Integer :- Integer Are Numerical Value Without Decimal Point.
Ex : 28 , 13 , 45 , 8 , 95 125.
1) Decimal :- 0 to 9 = 24 , 101 , 1.
2) Octal :- 0 to 7 = 037 , 021, 073.
3) Hexadecimal :- 0 to 9
A to F = 0BC , 1A7D.
2] Float :- Numerical Value With Decimal Point.
Ex : 28.05 , -5.65 , 48.23 , 587.321, 213.00.
B) Non Numerical
1) character :- Are Alpha Numerical Values En Closed Between ‘Singale Cotation’ Marks.
Ex : ‘ A ’ , ‘ B ’ , ‘ 12 ‘ , ‘ n ‘.
2) String :- Is A Combination Of Character En Closed Bet Ween “Doubale Cotation” Marks.
Ex : “ B “ , “ D “ , “ 123 “.
Comments
Post a Comment