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
Get step-by-step solutions from verified subject matter experts
