Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ push
Function
push
Stack/stack_implementation_using_array.c:23–32 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
21
printf(
"\n"
);
22
}
23
void push(struct Stack *st, int x)
24
{
25
if (st->top == st->size - 1)
26
printf(
"Stack overflow\n"
);
27
else
28
{
29
st->top++;
30
st->S[st->top] = x;
31
}
32
}
33
int pop(struct Stack *st)
34
{
35
int x = -1;
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected