Multiple choice

Which of the following statements is/are true about namespace in C++?

  1. We cannot put a semicolon after the namespace definition.

  2. A namespace definition can be applied to multiple files.

  3. We can use namespace in the program by scope resolution operator.

  4. Only (1) and (2)

  5. All of the above

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

Yes, these all statements are true about namespace in C++.