MCQs > IT & Programming > C++ > Which statement is true when declaring the member variable count as static? class my_class{ public: static int count;};

C++ MCQs

Which statement is true when declaring the member variable count 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