QINSERT Program in Data Structure

No comments


QINSERT:

#define N 10
int front = -1;
int rear = -1;
int Q[N];
void QINSERT( );
{
int item;
if (rear<N)
{
printf("Enter any number");
scanf("%d",&item);
if (front==-1)
{
front = 0;
rear = 0;
}
}
    else{
rear = rear+1;
Q[rear]=item;
          }
          else
          printf("Queue is Full");
 }

No comments :

Post a Comment

Subscribe

Milan Panda
Admin
About Me | Contact
Copyright 2023-2024 © Programming1011 . 🎀 Developed and Design By- Milan Panda. Happy Holi All Of You 🎀