| Type | Type | Range | % | Ex | 
| Char | 1 byte | -128 to 127 | %c | ‘a’ ‘A’ ‘#’ ‘\n’ | 
| Unsigned char | 1 byte | 0 to 255 | ||
| Int | 2bytes | -32,768 to 32767 | %d | -25 5 0 -5 | 
| Unsigned int | 2 bytes | 0 to 65,535 | %u | 327684 | 
| Longint | 4 bytes | -2,147,483,648 to+3147,483,647 | %ld+51-51 | 400001 | 
| Unsigned long | 4 bytes | 0 to 4,294,967,295 | 100lu51lu | |
| Float | 4 bytes | +or-3.4*10*+or-38 | %lu | -3.5 7.5f | 
| Double | 8 bytes | +or- 1.1*10*+or- | %f | -3.5 7.5 | 
| Long double | 10 bytes | 308+or-3.4*10*+or-9932 | %lf%Lf | -3.5L 7.5L | 
    
    
{ int i; long int l; float f; i=32767+1; l=32767+1; f=32767+1; printf(“%d%ld %f”,i,l,f); } o/p: 32768 -32768 -32768.000000
int , int   
  int int, char   
   int signed int, unsigned int   
   signed int signed , unsigned -  
  signed int, long int   
   long int int,float   
   float float, long int   
   float float, double  
  double double, long double   
   long double.
{ int i, long int l; float f; i=32767+1; l=32767l+1; // l=(long int) 32767+1; f=32767.0f+1; // f=(float)32767+1; printf(“%d %ld %f ”,i,l,f); } o/p : -32768 32768 32768.000000
You liked the article?
Like: 0
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.