#include <stdio.h> #define ISUNSIGNED(a) (a>=0 && ~a>=0) int main(int argc,const char * argv[]) { unsigned x=1; signed x=1; if(ISUNSIGNED(x)) printf("%d是一个UNSIGNED值\n",&x); else printf("%s是一个SIGNED值\n",x);
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题