标题:向各位大佬求解!!
取消只看楼主
coder吴
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2020-12-7
结帖率:0
已结贴  问题点数:20 回复次数:1 
向各位大佬求解!!
#include <stdio.h>
void main (){
    printf("%d\n ",sizeof(int));
   
}
 报错显示的是 : In function ‘main’:
3:12: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
     printf("%d\n ",sizeof(int));
请问这是什么原因造成的错误啊
搜索更多相关主题的帖子: sizeof int type printf main 
2020-12-10 13:25
coder吴
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2020-12-7
得分:0 
2020-12-11 11:13



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-504204-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.192997 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved