MCPcopy 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
25void 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
33int pop(StackNode** root)
34{

Callers 1

mainFunction · 0.70

Calls 1

newNodeFunction · 0.70

Tested by

no test coverage detected