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

What is an overflow error?

0 Answers  


What is an incomplete type?

1 Answers  


What is an Iterator class?

1 Answers  


Why do we use structure in c++?

0 Answers  


int f() { int I = 12; int &r = I; r += r / 4; int *p = &r; *p += r; return I; } Referring to the sample code above, what is the return value of the function "f()"? a) 12 b) 15 c) 24 d) 17 e) 30

2 Answers   AIG, Quark,






What is the output of this prog. ? struct A { A(){ cout << \"A\"; } }; struct B { B(){ cout << \"B\"; } }; struct C { C(){ cout << \"C\"; } }; struct D { D(){ cout << \"D\"; } }; struct E : D { E(){ cout << \"E\"; } }; struct F : A, B { C c; D d; E e; F() : B(), A(),d(),c(),e() { cout << \"F\"; } };

2 Answers  


What are the data types in c++?

0 Answers  


Why we use #include iostream in c++?

0 Answers  


What is the need of a destructor? Explain with the help of an example.

0 Answers  


What is class definition in c++ ?

0 Answers  


Difference between strdup and strcpy?

0 Answers  


What is a c++ object?

0 Answers  


Categories