MCPcopy Create free account
hub / github.com/SR-Sunny-Raj/Hacktoberfest2021-DSA / insert

Function insert

12. Queue/queue_implement.c:44–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42} /* End of main() */
43
44void insert()
45{
46 int add_item;
47 if (rear == MAX - 1)
48 printf("Queue Overflow \n");
49 else
50 {
51 if (front == - 1)
52 /*If queue is initially empty */
53 front = 0;
54 printf("Inset the element in queue : ");
55 scanf("%d", &add_item);
56 rear = rear + 1;
57 queue_array[rear] = add_item;
58 }
59} /* End of insert() */
60
61void delete()
62{

Callers 1

queue_implement.cFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected