Answer:Let us define a namespace called ‘samplespace’, which includes a member variable, namely ‘p’. How will you access this member variable from outside the namespace?
I. using namespace samplespace;
II. using samplespace :: p;
III. samplespace.p;
IV. p :: samplespace();
Options
a) I only
b) II only
c) Both III and IV
d) Both I and II
Answer : d) Both I and II