4バイトの符号なし整数の最大値を出力したい。
#include "stdafx.h"
#include "conio.h"
int _tmain(int argc, _TCHAR* argv[])
{
unsigned int x = 0xffffffff;
printf("%d\n",x);
x=~x;
printf("%d",x);
getch();
return 0;
}
しかし、出力は -1 と 0 になります。x = 4294967295 を出力するにはどうすればよいですか?