MCQs > IT & Programming > C++ > Consider the following code: class A { typedef int I; // private member I f(); friend I g(I); static I x; }; Which of the following are valid:

C++ MCQs

Consider the following code:

        class A {
              typedef int I;      // private member
              I f();
              friend I g(I);
              static I x;
          };

Which of the following are valid:


Answer

Correct Answer: A::I g(A::I p = A::x);

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it