Tuesday, 19 August 2014

THE GRAMMER OF C


THE C CHARACTER SET

Character set is a set of valid characters that a language can recognize. A character set denotes any alphabet, digit or special symbol used to represent information. The character set in C consists of upper and lower case alphabets, digits, special characters and white space.  
____________________________________________________________________________________
Alphabets                                               A, B,………, Y, Z
                                                              a,b,…………,y,z


Digits                                                      0,1,2,3,4,5,6,7,8,9   

Special symbols                                       ~   !  @  # % ^ & * ( ) _ + - * / | = \

                                                               { } [ ] : ; ” ’ < > , . ?/
____________________________________________________________________________________
                                                
       

KEYWORDS IN C

When designing compiler of a programming language such as C, some words are reserved to do specific tasks. Such words are called keywords or reserved words.
Below is the table for reserved words for C language.

Auto    default   float   register   struct  break   do   for   return   switch
Case   double    goto    short   typedef   char   else   if   signed   union
Const    enum   int   sizeof   unsigned    continue   extern   long    static
Void   while  
  VARAIBLES

A VARAIBLE  is a name that a c language compiler associated with a storage location in the main memory of the computer. Variable holds data that can be modified during program execution. After we declare a variable in a program we can assign it a value.

___________________________________________________________________________
A variable is an identifier that is used to represent some specific type of information within a designated portion of program.
___________________________________________________________________________
                                                                                                             AUTHOR  DANISH SHABIR
                                                                                                     Email id: beigh.danish@gmail.com                      




 

No comments:

Post a Comment

Tell Us What You've Got...