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

Discussion

Which of the given options is an array type used for holding information?

  • A.longjmp
  • B.setjmp
  • C.jmp_buf
  • D.no such variable

Answer: C

Correct answer: jmp_buf

jmp_buf is an array type declared in <setjmp.h>, holding the calling environment - registers, stack pointer, program counter - saved by setjmp. Being an array is what lets it be passed to longjmp without an explicit &.

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

Post your comment

Please log in or register to post a comment.