In the exercise 9.52, its showing the use of stack to reverse the string that is enclosed in the bracket. Its using the push function to input the string's character one by one into the stack and using the pop function to output the inputted character into reverse order.
In the exercise 9.52, its showing the use of stack to reverse the string that is enclosed in the bracket. Its using the push function to input the string's character one by one into the stack and using the pop function to output the inputted character into reverse order.