#include <stdio.h> int main() { int a,b,c; printf("请输入两个数:"); scanf("%d%d",&a&b); c = a + b; printf("%d",c); return 0; } /* Main.c: In function 'main': Main.c:6:18: error: invalid operands to binary & (have 'int *' and 'int') scanf("%d%d",&a&b); ^ */ |
Double click to view unformatted code.