Friday 19 June 2009

What is size of each data types in C programming?



Size of data type depends upon microprocessor. Each microprocessor defines its
own word length. On the basis of word length in general we can say:


1. Size of int is word length.


2. Size of short int can be
>= word length/2 but <=word length Size of long int can be <= 2*word
length but >=word length.


3. Size of char, float, double, long
double is always fix.


4. Size of enum is size of

No comments:

Post a Comment