Modifiers in c language

2. SIGN MODIFER:

    These modifiers are responsible for to make data type signed or unsigned. Both signed and unsigned modifiers affect the range of a data type. In c char all primitive data type except void are by default signed. If you will write:
signed char c;
signed short int si;
signed int i;
signed long int li;

Compiler will not show any error or warning message but it increases the unnecessary redundancy. So it is better to write:

char c;
short int si;
int i;
long int li;

But if you will write:
signed float f;
signed double d;
signed long double ld;


1 comment:

Unknown said...

I well hpe to read this page...