Question

Consider this line:

std::wcout << "Hello World!";

Is it OK to pass char* or char to wide stream?

Was it helpful?

Solution

Both are ok because the wide stream has multiple overloads.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top