Which one of the following is the correct way of declaring a namespace?
A. namespace my;
B. namespace my();
C. my namespace;
D. namespace(my);
Answer:A
Which one of the following is the correct way of declaring a namespace?
A. namespace my; B. namespace my(); C. my namespace; D. namespace(my);
Explanation: The namespace declaration must be the first statement in its file.