volume_mute

using namespace std;

publish date2022/09/25 04:23:00 GMT+10

volume_mute
using namespace std;

This statement is useless.  You can remove it and the program still compiles.

True
False

Correct Answer

False

Explanation

using namespace std;

allows you to use cout and endl without the prefix std::. It means that if you do not include this statement, then cout should be used as std::cout and endl should be used as std::endl.

Reference

C++ Programming, 7th edition, D. S. Malik


Quizzes you can take where this question appears