printing size of variables and datatypes
// printing size of
#include <stdio.h>
int main()
{
printf("size of int is\n %lu\n", sizeof(int));
printf("size of char is\n %lu\n", sizeof(char));
printf("size of float is\n %lu\n", sizeof(float));
printf("size of double is\n %lu\n", sizeof(double));
return 0;
}
Comments
Post a Comment