Question 10809 – APPSC-2016-DL-CS
March 19, 2024
Question 10831 – APPSC-2016-DL-CS
March 19, 2024
Question 10809 – APPSC-2016-DL-CS
March 19, 2024
Question 10831 – APPSC-2016-DL-CS
March 19, 2024

APPSC-2016-DL-CS

Question 18
Consider optimal implementation of two stacks growing in opposite directions in a single array A[n]. If t1 and t2 denote the stack pointers, which of the following, checks for stack full condition?
A
t2=(n-1) or t1=(n-1)
B
t1=n/2 or t2=(n-1)
C
t1=0 and t2=(n-1)
D
t2=t1+1
Question 18 Explanation: 
Correct Answer: D
Question 18 Explanation: 
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x