Write a programe to print size of variable data types using sizeof() function.
Write a programe to print size of variable data types using sizeof() function.
#include<stdio.h>
#include <stdlib.h>
int main()
{
char a;
int b;
float c;
long d;
double e;
bool f;
long int g;
printf("Size of char type variable: %d\n", sizeof(a));
printf("Size of int type variable: %d\n", sizeof(b));
printf("Size of float type variable: %d\n", sizeof(c));
printf("Size of long type variable: %d\n", sizeof(d));
printf("Size of double type variable: %d\n", sizeof(e));
printf("Size of bool type variable: %d\n", sizeof(f));
printf("Size of long int type variable: %d\n", sizeof(g));
system("PAUSE");
return 0;
}