Societe Generale Written Test Qs.(Data Structures) :: Queue - Discussion
Home > Freshers Archives > Societe Generale Placement Questions & Answers > MCQs Questions Discussion
88 / 224
Choose the correct option.
We need to implement a queue using a circular array. If DATA is a circular array of CAPACITY elements, and rear is an index into that array, what will be the index for the element after rear?
A(rear + 1) % CAPACITY
Brear + (1 % CAPACITY)
Crear % (1 + CAPACITY)
D(rear % 1) + CAPACITY
Answer: Option (Login/Signup)
Show Explanation
option A should be correct, modulus of a will always be zero in case of integer value.
Asked In ::
TRICK
option A should be correct, modulus of a will always be zero in case of integer value.
Read Full Answer
Report Error
Please Login First Click Here