google407ec42f1ae5ff0e.html Write a C Program to find out the size of data types
top of page

Write a C Program to find out the size of data types

Write a C Program to find out the size of data types

#include<stdio.h>

void main()

{

printf("sizeof(char) = %u\n",sizeof(char));

printf("sizeof(short) = %u\n",sizeof(short));

printf("sizeof(int) = %u\n",sizeof(int));

printf("sizeof(long) = %u\n",sizeof(long));

printf("sizeof(float) = %u\n",sizeof(float));

printf("sizeof(double) = %u\n",sizeof(double));

printf("sizeof(long double) = %u\n",sizeof(long double));

getch();


}

5 views0 comments

Recent Posts

See All
bottom of page