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

Function display_1

S-Stack/twoStackArray.cpp:66–77  ·  view source on GitHub ↗

------------This function displys the contents of stack 1---------------------------------*/

Source from the content-addressed store, hash-verified

64
65/*------------This function displys the contents of stack 1---------------------------------*/
66void display_1(){
67 if(top_1 == -1){
68 cout << "Stack empty" << endl;
69 return;
70 }
71
72 cout << "The Stack 1 elements are : ";
73
74 for(int i = top_1; i > 0; i--)
75 cout << arr[i] << " ---> ";
76 cout << arr[0] << endl;
77}
78
79
80/*------------This function displays the contents of stack 2--------------------------------*/

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected