top of page
Writer's pictureYatendra Awana

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();


}

6 views0 comments

Recent Posts

See All

Comentarios


bottom of page