C Program to demonstrate the use of sizeof operator


void main()
	int a;
	float b;
	char c;
	double d;
	long int l;
	printf("Size of Intereger Variable is:\t%d\n", sizeof(a));
	printf("Size of Float Variable is:\t%d\n", sizeof(b));
	printf("Size of Char Variable is:\t%d\n", sizeof(c));
	printf("Size of Double Variable is:\t%d\n", sizeof(d));							
	printf("Size of Long Integer Variable is:\t%d\n",sizeof(l));


Size of Intereger Variable is:	4
Size of Float Variable is:	4
Size of Char Variable is:	1
Size of Double Variable is:	8
Size of Long Integer Variable is:	8