How is static data member similar to a global variable?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h

0 Answers  


Explain what is class definition in c++ ?

0 Answers  


What is const in c++?

0 Answers  


Is main a class in c++?

0 Answers  


class A { public: void f(); protected: A() {} A(const A&){} }; Examine the class declaration shown above. Why are the default and copy constructors declared as protected? 1. To ensure that A cannot be created via new by a more derived class 2. To ensure that A cannot be copied 3. To ensure that A cannot be used as a base class except when public inheritance has been used 4. To ensure that A cannot be created/copied outside the inheritance chain 5. To ensure that A cannot be instantiated as a static variable

1 Answers  


What is a concrete class?

1 Answers  


when can we use copy constructor?

6 Answers   HP,


How do I exit turbo c++?

0 Answers  


Why main function is special in c++?

0 Answers  


Which is the best c++ compiler?

0 Answers  


What it is and how it might be called (2 methods).

0 Answers  


What are compilers in c++?

0 Answers  


Categories