...
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: 

Leave a Reply

Your email address will not be published. Required fields are marked *