Skip to content

Commit 7ed8d25

Browse files
authored
Update Stack.md
1 parent fc3026d commit 7ed8d25

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Stack.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,15 @@ void Peek()
9090
Returns true if the stack is empty, else false.
9191

9292
```c
93+
void isEmpty()
94+
{
95+
if (Top == -1)
96+
{
97+
printf("\nArray is Empty!");
98+
}
99+
else
100+
{
101+
printf("\nArray contains element");
102+
}
103+
}
93104
```

0 commit comments

Comments
 (0)