Q. What does the enQueue operation do?

Simulator
Union operation on two sets.

In set theory, the union (denoted by ∪) of a collection of sets is the set of all elements in the collection. It is one of the fundamental operations through which sets can be combined and related to each other.
The union of two sets A and B, denoted by A ∪ B, is the set of all elements which belong to A or to B; that is, A ∪ B = {x | x ∈ A or x ∈ B}.
For example, if A = {1, 3, 5, 7} and B = {1, 2, 4, 6, 7} then A ∪ B = {1, 2, 3, 4, 5, 6, 7}.

Van diagram for Union operation
Set A and Set B
Run
What is queue?

Queue implementation using array

Data/Variables:
Free
Used
Array size: Min(5) & Max(9)
F
R
Operations
enQueue
deQueue
isFull
isEmpty
display
Reset