1. Will the following lines of code print the same thing? Explain why or why not.
std::cout << 6 << '\n';
std::cout << "6" << '\n';
The first line is printing an integer 6 while line two prints a string 6. However, their output in the console is the same. Hence, the two lines of code print the same thing.
Comments
Leave a comment