小编Ram*_*Ram的帖子

为什么%x和%o被视为unsigned int?

ram@ram:~/Desktop$ cc sample.c 

sample.c: In function ‘main’:

sample.c:7: warning: format ‘%o’ expects type ‘unsigned int’, but argument 2 has type ‘long int’
Run Code Online (Sandbox Code Playgroud)

c

-2
推荐指数
1
解决办法
270
查看次数

标签 统计

c ×1