Insertion in Queue by R4R Team

Following is the function which are used to insert the element in the queue:

void insert()
int n;
if (rear == MAX - 1)
printf("Queue Overflow \n");
if (front == - 1)
front = 0;
printf("Enter the element in queue");
rear = rear + 1;
queue[rear] = n;

Leave a Comment:
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!