Skip to content

Commit c2dc57a

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

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Stack.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,20 @@ void isEmpty()
102102
}
103103
}
104104
```
105+
106+
### isFull
107+
Returns true if the stack is full, else false.
108+
109+
```c
110+
void isFull()
111+
{
112+
if (Top == Size -1)
113+
{
114+
printf("\nArray is Full!");
115+
}
116+
else
117+
{
118+
printf("\nArray is not full elements can be added to array.");
119+
}
120+
}
121+
```

0 commit comments

Comments
 (0)