sizeof operator Program in C

sizeof operator Program in C
sizeof operator Program in C

/*Program to understand the sizeof operator*/
#include<stdio.h>
int main(void)
{
	int var;
	printf("Size of int=%u\n",sizeof(int));
	printf("Size of float=%u\n",sizeof(float));
	printf("Size of var=%u\n",sizeof(var));
	printf("Size of an integer constant=%u\n",sizeof(45));  
	return 0;
}

Output:

Size of int=4
Size of float=4
Size of var=4
Size of an integer constant=4
c language tutorial learn c language study c language
Recent Posts