Is it ok to use wcout to print char*?
Question
Consider this line:
std::wcout << "Hello World!";
Is it OK to pass char*
or char
to wide stream?
Solution
Both are ok because the wide stream has multiple overloads.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow