Types of tokens in C ? tokens of C language, Character Set, Keywords, Identifiers, Constants

Tokens-Of-C-Language
Tokens Of C Language

Tokens Of C Language

    Tokens Components Of The Program That Are Used For Program Writing.
  1. Character Set
  2. Keywords
  3. Identifiers
  4. Constants
  5. Variable
  6. Data Types
  7. Operator

1] Character Set :- Character Set Is Collection Of Alphabets, Numerical Value Special Symbols Used For To Program Writing.
A TO Z
a TO z
0 TO 9
{ }, [ ] , ( ), < >, + , -, * , / , % , \  , # , & , ^ , ||  ,


2] Keywords :- Keywords Are Reserved Words Or Predefined Words Its Meaning Know For Compiler.

C Programming Language Has 32 Types Keywords.
void , int , float , double ,  char, if , else , switch , case , default , while, for , do , break , continue ,return , auto , struct , long ,  enum , register ,  typedef , extern , union , const , short ,  unsigned , signed , goto , sizeof , volatile ,  static .


3] Identifiers :- Identifiers Are Identification Name Of Program, Name Of Variable, Name Of Structure And Name Of Function Given By The Programar Or Developer.
    Rules For Identification
  • 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.
xyz_abc
abcd
_26xyz


4] Constants :- Are Frix Value Can Not Change During The Program Execution.

Constants
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

Popular posts from this blog

Difference between cpp and java.

Addition Of Two Numbers In Java

What is the java programming language ?