Vidyalelo
Data Structure · Q7

Stacks in Data Structures

Programming · Data Structure · question 7

Q7

How do you check if a stack is empty?

A.
Check if the top pointer is null
B.
Check if the size is zero
Answer
C.
Check if the top pointer is zero
D.
Check if the last element is null

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board