Write the C++ code for a function that prompts the user to enter a character and then

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 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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: