Skip to content

Commit 48fdd0c

Browse files
authored
Update Queue.md
1 parent ef9b5e6 commit 48fdd0c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Queue.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,29 @@ Otherwise, keep increasing the value of front and return the item stored at the
5252
Check if the queue is empty or full.
5353

5454
```c
55+
void isEmpty()
56+
{
57+
if (Top == -1)
58+
{
59+
printf("\nArray is Empty!");
60+
}
61+
else
62+
{
63+
printf("\nArray contains element");
64+
}
65+
}
66+
67+
void isFull()
68+
{
69+
if (Top == Size -1)
70+
{
71+
printf("\nArray is Full!");
72+
}
73+
else
74+
{
75+
printf("\nArray is not full elements can be added to array.");
76+
}
77+
}
5578
```
5679

5780
## Working of Queue Data Structure

0 commit comments

Comments
 (0)