Machine-translated by Google. Questions are authored in English.
Top

Discussion

goto can be used to jump from main into another function.

  • A.TRUE
  • B.FALSE
  • C.May Be
  • D.Can't Say

Answer: B

Correct answer: FALSE

goto can only reach a label in the same function; labels have function scope and are invisible outside it. Jumping between functions would leave the stack in an inconsistent state. Where a non-local jump really is needed, setjmp and longjmp provide a disciplined version of it.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.