Q. Which of the following is the correct way to define a namespace in C++?
β
Correct Answer: (A)
namespace MyNamespace { }
Explanation: The correct way to define a namespace is 'namespace MyNamespace { }'.