Integer type come with different size such as signed, unsigned, short, long, double
Is it possible to find out size of integer because I don't see any way.
Code:
#include<stdio.h>
int main (void)
{
int x = 5;
signed int y = 20;
unsigned int z = 4;
long int a = 10;
long unsigned int b = 20;
long signed int c = 30 ;
short int k = 8;
short unsigned int l = 12;
short signed int m = 16;
printf(" print value of x %d \n",x);
printf(" print value of y %d \n",y);
printf(" print value of z %d \n \n",z);
printf(" print value of a %d \n",a);
printf(" print value of b %d \n",b);
printf(" print value of c %d \n \n",c);
printf(" print value of k %d \n",k);
printf(" print value of l %d \n",l);
printf(" print value of m %d \n \n",m);
return 0;
}
print value of x 5
print value of y 20
print value of z 4
print value of a 10
print value of b 20
print value of c 30
print value of k 8
print value of l 12
print value of m 16