printf中的%#lx

#表示连同前缀一起输出

例如:十进制65

%#x  输出0x41

%#o 输出o101

%#d 输出65

%lx:unsinged long int (长整形)
%x: unsinged int (整形)

参考:

http://blog.sina.com.cn/s/blog_5e29f6430102yro1.html

https://zhidao.baidu.com/question/1494788294285608499.html

猜你喜欢

转载自blog.csdn.net/eidolon_foot/article/details/111201051