May 2021 1 108 Report
Try to find the best solution for this problem bebs..........................…?

How to write this program?please help?

Write a program that reverses the string contents of a stack (the top and bottom elements exchange positions, the second last element exchange positions, and so forth until the entire stack is reversed). Hint: You may use a second stack. The following diagram illustrates the exchange process.

A -------------------------> I

B ------------------------> H

C ------------------------> G

D -------------------------> F

E -------------------------> E

F -------------------------> D

G -------------------------> C

H -------------------------> B

I -------------------------> A

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 1QUIZZ.COM - All rights reserved.