Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SR-Sunny-Raj/Hacktoberfest2021-DSA
/ push
Function
push
06. Sorting/Stack_using_array.cpp:25–31 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
23
}
24
25
void push(StackNode** root, int data)
26
{
27
StackNode* stackNode = newNode(data);
28
stackNode->next = *root;
29
*root = stackNode;
30
cout << data <<
" pushed to stack\n"
;
31
}
32
33
int pop(StackNode** root)
34
{
Callers
1
main
Function · 0.70
Calls
1
newNode
Function · 0.70
Tested by
no test coverage detected