Question: Write the C++ code for a function that prompts the user to enter a character and then stores the character in a char variable named

Write the C++ code for a function that prompts the user to enter a character and then stores the character in a char variable named response. The function should return the contents of the response variable. Name the function getCharacter. (The function will not have any actual arguments passed to it.) Also write an appropriate function prototype for the getCharacter function. In addition, write a statement that invokes the getCharacter function and assigns its return value to a char variable named custCode.

Step by Step Solution

3.45 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

char getCharacter char response c... View full answer

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 Microsoft Visual C# Introduction Questions!