小编use*_*970的帖子

传递'printf'的参数1使得指针来自整数

我一直收到这个错误

box2.c: In function 'printchars':
box2.c:26:4: warning: passing argument 1 of 'printf' makes pointer from integer without  a      
cast [enabled by default]
/usr/include/stdio.h:363:12: note: expected 'const char * __restrict__' but argument is      
of type 'char' box2.c:26:4: warning: format not a string literal and no format arguments [-Wformat-security]
box2.c:39:8: warning: passing argument 1 of 'printf' makes pointer from integer without      a cast [enabled by default]
/usr/include/stdio.h:363:12: note: expected 'const char * __restrict__' but argument is     of type 'char'
box2.c:39:8: warning: format …
Run Code Online (Sandbox Code Playgroud)

c arguments

4
推荐指数
1
解决办法
3万
查看次数

标签 统计

arguments ×1

c ×1