Consider a stack S implemented using a linked list. When does the following…
NVS Computer Science / IT Teacher Recruitment · Computer Science · 2022
Consider a stack S implemented using a linked list. When does the following function return TRUE? int f1(stack S) { return S->Next == NULL; } A) When the stack is full. B) When the stack is empty. C) When no memory is available. Mark the correct option.
- A.
Only (A) is correct
- B.
Only (B) is correct
- C.
Only (C) is correct
- D.
Only (B) and (C) are correct
Attempted by 1287 students.
Sign up free to check your answer
Sign up freeLoading lesson…