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!