How can I print maximum value of an unsigned integer?

后端 未结 8 669
失恋的感觉
失恋的感觉 2020-12-19 02:13

I want to print the maximum value of the unsigned integer which is of 4 bytes.

#include \"stdafx.h\"
#include \"conio.h\"

int _tmain(int argc, _TCHAR* argv[         


        
8条回答
  •  臣服心动
    2020-12-19 02:43

    Use %u as the format string to print unsigned int, %lu for unsigned long, and %hu for unsigned short.

提交回复
热议问题