MCPcopy Create free account
hub / github.com/Lakhankumawat/LearnCPP / display_2

Function display_2

S-Stack/twoStackArray.cpp:81–92  ·  view source on GitHub ↗

------------This function displays the contents of stack 2--------------------------------*/

Source from the content-addressed store, hash-verified

79
80/*------------This function displays the contents of stack 2--------------------------------*/
81void display_2(){
82
83 if(top_2 == SIZE){
84 cout << "Stack is empty" << endl;
85 return;
86 }
87 cout << "The Stack 2 elemnts are : ";
88
89 for(int i = top_2; i < SIZE - 1; i++)
90 cout << arr[i] << " ---> ";
91 cout << arr[SIZE - 1] << endl;
92}
93
94
95int main(){

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected