Notes
Insert elements into a queue in C
Content of the notes (1)
Page 1
void insert()
{
int element;
if (rear == LIMIT - 1)
printf("Queue Overflow\n");
else
{
if (front == - 1)
front = 0;
printf("Enter the element to be inserted in the queue: ");
scanf("%d", &element);
rear++;
queue[rear] = element;
}
}
Information
- Description
- Computacion Note on Insert elements into a queue in C, created by VICTOR ALEJANDRO ARCINIEGA NILA on 08/10/2020.
- Created by
- VICTOR ALEJANDRO ARCINIEGA NILA
- Views
- 0
- Rating