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.

  1. A.

    Only (A) is correct

  2. B.

    Only (B) is correct

  3. C.

    Only (C) is correct

  4. D.

    Only (B) and (C) are correct

Attempted by 1287 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rssb Senior Computer Instructor

Loading lesson…