What are structs in c++?
No Answer is Posted For this Question
Be the First to Post Answer
an integer constant must have atleast one a) character b) digit c) decimal point
What is virtual table?
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
How many lines of code you have written for a single program?
Evaluate !(1&&1||1&&0) a) Error b) False c) True
What is called array?
What is "map" in STL?
How to declare a function pointer?
class Foo { public: Foo(int i) { } }; class Bar : virtual Foo { public: Bar() { } }; Bar b; Referring to the above code, when the object 'b' is defined, a compiler error will occur. What action fixes the compiler error? a) Adding a virtual destructor to the class Bar b) Adding a constructor to Bar which takes an int parameter c) Adding "Foo()" to the Bar constructor d) Adding a copy constructor to the class Foo e) Adding "Foo(0)" to the Bar::Bar initializer list
How static variables and local variablesare similar and dissimilar?
What is friend class in c++ with example?
Types of storage and scope of each type