why can't we declare data member of class auto register or
extern
Answer / kavitha shetty
since data members gets memory allocated through object not
individual..so always memory allocated for object...
otherwise u might get error like illegal storage class
| Is This Answer Correct ? | 5 Yes | 0 No |
Write any small program that will compile in "C" but not in "C++"?
Write a short code using c++ to print out all odd number from 1 to 100 using a for loop
What is a buffer c++?
What do you mean by funtion prototype?
What is volatile and pragma? When they are used?
What are c++ redistributables?
What's c++ used for?
Explain the difference between struct and class in terms of access modifier.
In the derived class, which data member of the base class are visible?
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 decision making statements in C++? Explain if statement with an example?
What are the five types of inheritance in C++?