Multiple choice technology programming languages

Which of them is false about a Static data member within a class

  1. A single copy of the data member exists

  2. The data member is initialised to zero before the first object is created

  3. Requires a global definition

  4. Storage is allocated to the static data member on declaration

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Static data members are declared in the class but storage is NOT allocated at declaration - only at definition outside the class. This makes option D the false statement. The other options correctly describe static member behavior.