MCQs > IT & Programming > C++ > Which of the following is not a consequence of declaring the member variable count of my_class as static? class my_class { public: static int count;}

C++ MCQs

Which of the following is not a consequence of declaring the member variable count of my_class as static? class my_class { public: static int count;}

Answer

Correct Answer: The variable cannot be modified by any part of the code in the same application or thread. However, other threads may modify it.

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