I want to override the standard char range. Currently in my compiler, default char is unsigned. i.e 0 to 255. But I want to override its range to -128 to 127. i.e making it as signed. I know I can simply define signed char.
But is there any way to set the value range for a standard type like char, int , short..
I tried
typedef signed char char;
and obviously it failed, saying
error: multiple types in one declaration
error: declaration does not declare anything
Please help me to override the char with signed char.
But is there any way to set the value range for a standard type like char, int , short..
I tried
typedef signed char char;
and obviously it failed, saying
error: multiple types in one declaration
error: declaration does not declare anything
Please help me to override the char with signed char.
Comment