Code
// Examples of sizeof operator...
# include <stdio.h>
int main(){
int i;
float f;
double d;
char c;
printf("Size of int:%zu bytes\n",sizeof(i));
printf("Size of int:%zu bytes\n",sizeof(f));
printf("Size of int:%zu bytes\n",sizeof(d));
printf("Size of int:%zu bytes\n",sizeof(c));
}
Output
Size of int:4 bytes Size of int:4 bytes Size of int:8 bytes Size of int:1 bytes