Ads

Saturday, May 2, 2020

C Programing Language: C Keywords and Identifiers

C Keywords and Identifiers



Character set



Special Characters


C Keywords : 32 keywords


Identifiers/variables:

In C language identifiers is variables, functions and user data. its you can write what you want  but it has some rule, you will be care:

1.An variable or identifiers can only this characters :-a-z , A-Z , 0-9, and underscore
2.The first character must be a-z , A-Z and underscore 
3. Identifiers also sensitive.
4. Keywords are not allowed.
5. Semicolon, period, white spaces, slash or comma are permitted to be used.


 Integers
                    An integer is a numbers 
 ex: int a=10;
 specifiers %d

Floating
                   point Literals
 ex: float a=10.34;
specifiers %f

Characters
ex: char ch='a';
specifiers %c

Double 
                 point Literals
ex: double a=23.23232223232;
specifiers %lf

                                         Escape Sequences





  









0 comments:

Post a Comment