printf输出long int类型,使用的占位符报错。求大神解答
具体代码如下int main(void) {
int a = 10;
int b = -10;
long int c = 2000;
printf("a=%d,b=%d,c=%d\n",a,b,c);
//此处显示format '%n' expects argument of type 'int *', but argument 4 has type 'long int' [-Wformat=]
return EXIT_SUCCESS;
}