Friday, 1 September 2017

KEYWORDS AND TOKENS

KEYWORDS IN C

There are some reserved words in c called Keywords

  • RESERVED WORDS = (some words are saved in compiler )
  • And all keywords have standard predefined meanings and it can be used only for purpose intended. and every keyword must be written in lower case. they cannot be used as user-defined identifiers.
  • IDENTIFIERS(the user will create the identifiers)

There are some few keywords here

auto      break      case     char     const
continue  default   do       double       else
if   int   long   short   while   goto   for


C TOKENS IN C 


  • Tokens are used to build a program. 
  • each and every smallest unit in a c programe known as c token.There are six tokens in c


TOKEN                                                                                   USAGE
1. keywords                                                                   do,int,for,etc.
2. identifiers                                                                 area,sum,total
3.constants                                                                  pie value,10,20
4.operators                                                                  +,-,*,
5.strings                                                                      "collage"
6.special symbols                                                        #,!,[],{} etc



No comments:

Post a Comment

OPERATERS

"Don't Review Skip": Fans Troll Tim Paine For Poor DRS Challenge On Day 3

India vs Australia: Tim Paine was again in the firing line as his poor DRS call against Mayank Agarwal cost Australia a review on Day 3 of t...