63 050
Assignments Done
99,1%
Successfully Done
In July 2018

Answer to Question #70380 in C++ for Andy

Question #70380
How are static variables that are data members of a class initialised??
Expert's answer
In C++, static member variables are initialised to zero once first object of class is created; There is only one instance of this variable for any number of objects of this class; Static variables can't be initialised inside class but they can be initialised outside of class accoding to the format:
(data type of varible) (name of class)::(name of varible)= (value);

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions