C Program to Find the Size of int, float, double and char
C Programming
--------------------------------------------------------------------------------------------------------------------------------
#include<stdio.h>
#inlcude<conio.h>
void main()
{ clrscr(); // clear function on screen
int a;
float b;
double;
char;
// sizeof furnction to know size of date type
printf("size of int = %u\n", sizeof(a));
printf("size of float = %u\n",sizeof(b));
printf("size of double = %u\n", sizeof(double));
printf("size of char = %u",sizeof(char));
getch();}
----------------------------------------------------------------------------------
Comments
Post a Comment