How is static data member similar to a global variable?
No Answer is Posted For this Question
Be the First to Post Answer
What is an overflow error?
What is an incomplete type?
What is an Iterator class?
Why do we use structure in c++?
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
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\"; } };
What are the data types in c++?
Why we use #include iostream in c++?
What is the need of a destructor? Explain with the help of an example.
What is class definition in c++ ?
Difference between strdup and strcpy?
What is a c++ object?