Question
Write a program in C to simulate backward and forward functionality just like a web browser. Your program should have at least two functions, backward()
Write a program in C to simulate backward and forward functionality just like a web browser. Your program should have at least two functions, backward() and forward().
For example, the user enters two string such as Test1 and Test2.
1) Case one: If the user selects backward, Test2 will be printed.
Then if the user selects backward again, Test1 will be printed.
Then if the user selects backward a third time, a message such as empty" will be printed.
2) Case two: If the user selects backward, Test2 will be printed.
Then if the user selects forward, Test2 will be printed.
3) Case three: If the user selects backward, Test2 will be printed.
Then if the user selects backward again, Test1 will be printed.
Then if the user selects forward, Test1 will be printed.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started