Which of the following is the condition to check if the circular queue is full or not?

1
if((rear+1)mod n == front)
2
if((rear== n-1) || (front ==0 && rear == n -1))
3
if((front == n-1)
4
if(front ==0 && rear == n -1)

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation