例如,以下代码在编译时返回错误和警告int,更改为%d
int
%d
警告:格式%s需要 type 的char *参数,但参数 2 具有类型int
%s
char *
void stringd() { char *s = "Hello"; printf("derefernced s is %s", *s); }
c
c ×1