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
Environmental Sciences,
2 months ago
Social Sciences,
2 months ago
Math,
5 months ago
History,
5 months ago
Biology,
10 months ago
History,
10 months ago
Math,
10 months ago