Search
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();
}
Recent Posts
See AllLinear search in an array using function sequential search in an array using function Linear search
Write a c program using Prefix increment/decrement concept.
Comentarios