LearnFrenzy
Sign in Take a free test

Control Instructions · Control Instructions MCQ · Question 10

Which goto is not allowed in C? Answer, explanation & discussion

  • MCQ
  • Hard
  • 0 comments
  • Answer explained
  • Moderated community
Question 10 Back to Exercise

Which use of goto is invalid?

  • A Jumping forward to a cleanup label
  • B Jumping out of two nested loops
  • C Jumping into the scope of a variable length array, past its declaration Correct
  • D Jumping backwards to retry an operation
Correct Answer: Option C

A VLA's size is set when its declaration runs, so the language forbids jumping past it into its scope. Jumps must also stay inside the same function.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links