Ther is a line:
std::wstring ws(L"Hello world!!!");
However, the function we want to call is declared as
void Print(std::string s);
Which of the following conversions from ws to s must be used to correctly pass the contents of ws to the Print function?

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
C++ quizzes
Sign Up Now
or Subscribe for future quizzes