C语言问题error: invalid operands to binary &

2025-05-10 07:40:49
推荐回答(1个)
回答1:

scanf("%d%d%d"&a,&b,&c);

中间少了个“,”

修改如下:

#include
#include
#include

int main()
{
int a,b,c;
printf("Please input 3 numbers of int type");
scanf("%d%d%d",&a,&b,&c);
printf("%d,%d,%d\n",a,b,c);
return 0;
}