Vidyalelo
Data Structure · Q137

Stacks in Data Structures

Programming · Data Structure · question 137

Q137

In the given C snippet, find the statement number that has error. //C code to push an element into a stack void push( struct stack *s, int x) if(s->top==MAX-1) printf(“stack overflow”); else s->items[++s->top]=x; s++;

A.
1
B.
9
C.
10
Answer
D.
11

Answer: Option C

Solution

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