1. Will the following lines of code print the same thing? Explain why or why not
cout << 6 << endl;
cout << "6" << endl;
Answers
Answered by
0
Explanation:
re << is used to pass "Hello World" to cout. Thus, std::cout << "Hello World"; passes "Hello World" to cout and cout will print this Hello World on the screen.
using std::cout in C++
One more thing you need to know here is that std::cout is an object in the iostream library.
Similar questions