Size of Numeric value

Thursday, 8 September 2011

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf("\nSize= %d byte",sizeof(5));
printf("\nSize= %d byte",sizeof(4.5));
printf("\nSize= %d byte",sizeof(4.5f));
getch();
}


OUTPUT:


Size=2 byte
Size=8 byte
Size=4 byte











No comments:

Post a Comment

 

Blogger news

Blogroll

Enter your email address:

Delivered by FeedBurner

Total Pageviews

Followers

Most Reading