C - Variables and Data Types
Identify the error in this C code snippet:
int main() {
int x;
x = 10
printf("%d", x);
return 0;
}int main() {
int x;
x = 10
printf("%d", x);
return 0;
}x = 10 is missing a semicolon at the end, which is required in C.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions