Question: A code example written in C language where a function prints the menu of choices for the user, prompts the user to enter a choice,

A code example written in C language where a function prints the menu of choices for the user, prompts the user to enter a choice, and retrieves that choice. The return value of this function will be void. It will have one pass-by-reference parameter of type char. On the function's return, the parameter will contain the user's menu choice. Add code to the menu() function to prompt for retrieve user input (allow any character). Then when you write a menu() function, called from main(), that prints the menu only. Adding one pass-by-reference parameter to your menu() function will retrieve the character input within that function and make it available for use within the main() function. This function must remain a void function and not return a value.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!