510 views
1 votes
1 votes

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.

Related questions

1 votes
1 votes
1 answer
1
Harikesh Kumar asked Jan 14, 2018
284 views
Output is? With explanation
2 votes
2 votes
1 answer
2
Harikesh Kumar asked Jan 14, 2018
305 views
Explain the answer.
1 votes
1 votes
0 answers
3
Harikesh Kumar asked Jan 14, 2018
326 views
What is the correct Answer ?My answer is 90 and given answer is no output how?
1 votes
1 votes
1 answer
4
Harikesh Kumar asked Jan 14, 2018
234 views
How to predict it