JavaShuo
栏目
标签
warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘__pid_t (*)(void)’
时间 2020-12-24
原文
原文链接
代码如下 printf("%d pid : ppid :%d %d\n",s*s,getpid,getppid; 错误如下 格式’%d’需要类型为’int’的参数,但参数3的类型为’__pid_t(*)(void)’[ - Wformat] 也就是在需要传入参数返回值的时候很重要的一件事,一定要加上括号。 加上括号就是取返回值,不加括号就是一个函数。 正确改为 printf("%d pid : p
>>阅读原文<<
相关文章
1.
warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘time_t {aka long int}
2.
format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[10]'
3.
Ubuntu implicit declaration of function xxx 和format %u expects argument of type xxx解决办法
4.
RuntimeError: Expected object of scalar type Long but got scalar type Float for argument #2 'target'
5.
java.lang.IllegalArgumentException: argument type mismatch
6.
date java.lang.IllegalArgumentException: argument type mismatch
7.
ctypes.ArgumentError: argument 1: : wrong type
8.
pytorch挖坑之:Expected object of scalar type Long but got scalar type Float for argument target...
9.
TypeError [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string
10.
Python TypeError: argument of type 'NoneType' is not iterable
更多相关文章...
•
ASP Type 属性
-
ASP 教程
•
ASP Type 属性
-
ASP 教程
•
为了进字节跳动,我精选了29道Java经典算法题,带详细讲解
•
使用阿里云OSS+CDN部署前端页面与加速静态资源
相关标签/搜索
argument
type
type.2.3
quickupload&type
type='file'
type.3.2.2
warning
expects
void
format
PHP 7 新特性
Spring教程
MyBatis教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
css 让chrome支持小于12px的文字
2.
集合的一点小总结
3.
ejb
4.
Selenium WebDriver API
5.
人工智能基础,我的看法
6.
Non-local Neural及Self-attention
7.
Hbuilder 打开iOS真机调试操作
8.
improved open set domain adaptation with backpropagation 学习笔记
9.
Chrome插件 GitHub-Chart Commits3D直方图视图
10.
CISCO ASAv 9.15 - 体验思科上一代防火墙
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘time_t {aka long int}
2.
format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[10]'
3.
Ubuntu implicit declaration of function xxx 和format %u expects argument of type xxx解决办法
4.
RuntimeError: Expected object of scalar type Long but got scalar type Float for argument #2 'target'
5.
java.lang.IllegalArgumentException: argument type mismatch
6.
date java.lang.IllegalArgumentException: argument type mismatch
7.
ctypes.ArgumentError: argument 1: : wrong type
8.
pytorch挖坑之:Expected object of scalar type Long but got scalar type Float for argument target...
9.
TypeError [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string
10.
Python TypeError: argument of type 'NoneType' is not iterable
>>更多相关文章<<