Apuntes
Insert elements into a queue in C
Contenido del apunte (1)
Página 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;
}
}
Información
- Descripción
- Computacion Apunte sobre Insert elements into a queue in C, creado por VICTOR ALEJANDRO ARCINIEGA NILA el 08/10/2020.
- Creado por
- VICTOR ALEJANDRO ARCINIEGA NILA
- Visitas
- 0
- Valoración