代码:
int main()
{
unsigned int n = -1;
unsigned short int y = -1;
printf("n is unsigned int n = %d\ny is unsigned short int y = %d\n",n,y);
return 0;
}
输出:
PS C:\Users\LENOVO\Downloads> gcc .\test.c -o out
PS C:\Users\LENOVO\Downloads> .\out
n is unsigned int n = -1
y is unsigned short int y = 65535
[使用的编译器是在Windows 10中使用mingw安装的gcc编译器,在在线gcc编译器中进行了尝试,它也给了我相同的结果。代码:int main(){unsigned int n = -1;无符号...
%u
函数调用的函数: