Saturday 5 February 2011

Default data type in c


Default data type is opposite of default modifier as
you read in the above topic. In case of only SIZE, SIGN, STORAGE CLASS,
CONSTANT, and VOLATILE modifier compile automatically assumes int as a default
data type. For example:



(1)

long a=25;

It is equivalent to: long int a=25;

(2)

signed a=25;

It is equivalent to: signed int a=25;

(3)

register a=25;

It is equivalent to: unsigned

No comments:

Post a Comment