gpt4 book ai didi

c - 为什么 %x 和 %o 被视为无符号整数?

转载 作者:行者123 更新时间:2023-11-30 19:55:40 24 4
gpt4 key购买 nike

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’

最佳答案

因为它们被指定为采用unsigned int

(不,真的。)

关于c - 为什么 %x 和 %o 被视为无符号整数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7136267/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com