C - Loop Control Statements
Identify the error in this C code using
goto:
int main() {
goto end;
printf("Hello");
end:
return 0;
}goto:
int main() {
goto end;
printf("Hello");
end:
return 0;
}end is defined after the goto statement, so jumping to it is valid.end, skipping the printf. So it prints nothing and returns 0 without error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions