in Programming in C edited by
2,428 views
1 vote
1 vote

If only one memory location is to be reserved for a class variable, no matter how many objects are instantiated, then the variable should be declared as

  1. extern
  2. static
  3. volatile
  4. const
in Programming in C edited by
by
2.4k views

2 Answers

7 votes
7 votes
the answer is b . Static memebers of a class share same memory by all the object. if u want to check just make a class and define a variable static in it . else if u don't want to type here u go . check this post . http://www.learncpp.com/cpp-tutorial/811-static-member-variables/
1 vote
1 vote
answer is static
Answer:

Related questions