743 views
1 1 vote

Pick the wrong statement about static member cariable in a class written in C++:

  1. Only one copy of static data members is created and all objects of the class will share that variable.
  2. Memory for static variable is allocated when you declare it within a class
  3. A static member variable exists before any object of its class is created .
  4. All static variables are initialized to zero.
  5. All statements are correct

Please log in or register to answer this question.

Position:
Show:

Related questions

1 1 vote
1 1 answer
580
580 views
Harikesh Kumar asked Jan 14, 2018
580 views
Output is? With explanation
2 2 votes
1 1 answer
566
566 views
Harikesh Kumar asked Jan 14, 2018
566 views
Explain the answer.
1 1 vote
0 0 answers
709
709 views
Harikesh Kumar asked Jan 14, 2018
709 views
What is the correct Answer ?My answer is 90 and given answer is no output how?
1 1 vote
1 1 answer
458
458 views
Harikesh Kumar asked Jan 14, 2018
458 views
How to predict it