Friday 25 January 2013

check size of int,char,float,double

 #include <iostream>
        #include <conio>
        #include <stdio>

             void main()

             {

               cout<<"Size of char\t"<<sizeof(char )<<endl;
               cout<<"Size of float\t"<<sizeof(float)<<endl;
               cout<<"Size of doubel\t"<<sizeof(double)<<endl;
             getch();}

0 comments:

Post a Comment