Size of Data Types

Thursday, 8 September 2011

#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

 

Blogger news

Blogroll

Enter your email address:

Delivered by FeedBurner

Total Pageviews

Followers

Most Reading