C Multiple Choice Non Local Jumps Online Exam Quiz
C Multiple Choice Non Local Jumps GK Quiz. Question and Answers related to C Multiple Choice Non Local Jumps. MCQ (Multiple Choice Questions with answers about C Multiple Choice Non Local Jumps
A less common use of setjmp.h is to create syntax similar to ____________
Options
A : errno
B : variable arguments
C : coroutines
D : retval
What is the function of the given longjump(jmp_buf buf, i)?
Options
A : go back to place buf is pointing to and return i
B : go back to place buf is pointing to and return 0
C : uses buf to remember current position and returns 0
D : uses buf to remember current position and returns i
How many times does the function longjmp() returns?
Options
A : once
B : twice
C : thrice
D : never
The header file setjmp.h is used to __________
Options
A : set location specific information
B : control low-level calls and returns to and from functions
C : handle signals reported during a program’s execution
D : manipulate strings (character arrays)
What are the contents of the register?
Options
A : sp, fp only
B : sp only
C : fp, pc only
D : sp, fp, pc
Which is the true statement with respect to the function longjmp()?
Options
A : the function where setjmp() was called has terminated, then the results are undefined
B : the function where setjmp() was called has terminated, then the results are defined
C : the function where jmp_buf was called has terminated, then the results are undefined
D : the function where jmp_buf was called has terminated, then the results are defined
Which of the given statement is not true with respect to void longjmp( jmp-buf env, int val)?
Options
A : The variable value cannot be zero
B : env is the object containing information to restore the environment at the jmp_buf’s calling point
C : This function does not return any value
D : This function restores the environment saved by the most recent call to setjmp() macro
setjmp takes a jmp_buf type and different other type variables as input.
Options
A : true
B : false
C :
D :
The void longjmp( jmp-buf env, int val) function causes setjmp() macro to return _______ value; if val is 0.
Options
A : zero
B : one
C : null
D : no return
Chemical Engineering Basics - Part 1 more Online Exam Quiz
C Multiple Choice File Operations
C Multiple Choice General Utilities
C Multiple Choice Implementation Defined Limits
C Multiple Choice Mathematical Functions