Finding the signedness of a variable.
How do we find the signedness of a given variable.
Say,
int a; unsigned char b;
Pass it to a macro.
FindSign(a); //This should state it is signed.
FindSign(b); //This should state it is unsigned.
it should say if the variable is signed or unsigned.
|