C++ Static Data Question:
Download Questions PDF

We can initialize a value of static variable of a class only when its object is created. No other initialization is permitted.

a. True
b. False

C++ Static Data Interview Question
C++ Static Data Interview Question

Answer:

b. False

Download C++ Static Data Interview Questions And Answers PDF

Previous QuestionNext Question
Explain the uses of static class data?Static variable in a class is initialized when:

a. every object of the class is created
b. last object of the class is created
c. first object of the class is created
d. No need to initialize static variable