Question: Write a CompStack() function which takes pointer to two stack as an argument and return true or false depending upon whether all the elements of
Write a CompStack() function which takes pointer to two stack as an argument and return true or false depending upon whether all the elements of the stack are equal or not. You are given isEqual(int, int)
which will compare and return true if both values are equal and 0 if they are different.
Step by Step Solution
3.37 Rating (166 Votes )
There are 3 Steps involved in it
Answer bool CompStackStack stack1 Stack stack2 if stack1s... View full answer
Get step-by-step solutions from verified subject matter experts
