Saturday, August 20, 2011

Program to check the size of built-in datatypes.

//Program to check the size of built-in datatypes.
#include<stdio.h>
#include<conio.h>
void main()
{
 int a,x,y,z,n;
 float b;
 char c;
 double e;
 clrscr();
 x=sizeof (a);
 y=sizeof (b);
 z=sizeof (c);
 n=sizeof (e);
 printf(" size of intezer data type=%d",x);
 printf("\n size of float data type=%d",y);
 printf("\n size of character data type=%d",z);
 printf("\n size of double data type=%d",n);
 getch();
}

Previous Next Home
0 Comments
Comments

Leave a Comment

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

Twitter Delicious Facebook Favorites More