Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/3rfaan/courses
/ pop
Function
pop
C/freeCodeCamp/Data Structures/stack-array.c:24–32 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
22
}
23
24
void pop()
25
{
26
if (top == -1)
27
{
28
printf(
"Error: No element to pop\n"
);
29
return;
30
}
31
top--;
32
}
33
34
int get_top()
35
{
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected