1.

What is the output of this program?
#include 
#include
using namespace std;
string askMessage(string Message = "Please enter a message: ");
int main()
{
string Input = askMessage();
cout << "Here is your message: " << Input;
return 0;
}
string askMessage(string Message)
{
string Input;
cout << Message;
cin >> Input;
return Input;
}

A. Compilation Error
B. Runtime Error
C. Garbage value
D. The message you entered
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs