Friday, 3 January 2014

HOW TO CHECK THE SIZE OF DATA TYPE..!!!(In Byte)

#include<stdio.h>
int main()
{
printf("%d\n",sizeof(int));
printf("%d\n",sizeof(float));
printf("%d\n",sizeof(double));
printf("%d",sizeof(long double));
    return 0;
}

EXPECTED OUTPUT: (Might depend on your operating system)


4
4
8
12


No comments:

Post a Comment