Z
Z-Z
Hi,
I used the following macro to determine variable signed or not, but only
find that it is useless for a short or char variable. I think that it might
caused by value conversion rules. I used VC.
#define ISUNSIGNED(a) (a>=0 && ~a>= 0)
Who knows the reason and other methods to determine short varible signed or
not?
Thanks.
Zoe
I used the following macro to determine variable signed or not, but only
find that it is useless for a short or char variable. I think that it might
caused by value conversion rules. I used VC.
#define ISUNSIGNED(a) (a>=0 && ~a>= 0)
Who knows the reason and other methods to determine short varible signed or
not?
Thanks.
Zoe