Why struct is used in c++?
No Answer is Posted For this Question
Be the First to Post Answer
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
What is istream c++?
What is function prototyping?
whats the size of class EXP on 32 bit processor? class EXP { char c1; char c2; int i1; int i2; char *ptr; static int mem; };
What does std :: flush do?
What is anonymous object in c++?
Can you write a function similar to printf()?
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
Can the creation of operator** is allowed to perform the to-the-power-of operations?
What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?
What is a flag in c++?
What is the Difference between "vector" and "array"?
15 Answers Covansys, Gambit, TCS, Wipro,