skip to main |
skip to sidebar
Size of Data Types
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
float b;
char c;
clrscr();
printf("\nSize of a=%d byte",sizeof(a));
printf("\nSize of b=%d byte",sizeof(b));
printf("\nSize of c=%d byte",sizeof(c));
getch();
}
OUTPUT:
Size of a=2 byte
Size of b=4 byte
Size of c=1 byte
No comments:
Post a Comment