Is not using & with a variable in scanf() a syntax error or a runtime error?
问题 I was taught that a syntax error comes from a single mistake and doesn't execute the program. However, a runtime error still starts the program but crashes in the middle. If I accidentally didn't put & in front of a variable in a call to scanf() , would that considered to be a syntax error or a runtime error? For example int main(void) { int a; printf("input a integer number >>"); scanf("%d\n", a); printf("the input number is %d\n", a); return 0; } In the scanf statement, I don't have & in