What are structs in c++?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

an integer constant must have atleast one a) character b) digit c) decimal point

0 Answers  


What is virtual table?

0 Answers  


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

1 Answers  


How many lines of code you have written for a single program?

4 Answers   BoA,


Evaluate !(1&&1||1&&0) a) Error b) False c) True

0 Answers  






What is called array?

0 Answers  


What is "map" in STL?

2 Answers  


How to declare a function pointer?

0 Answers  


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

2 Answers   Quark,


How static variables and local variablesare similar and dissimilar?

0 Answers  


What is friend class in c++ with example?

0 Answers  


Types of storage and scope of each type

2 Answers   CA,


Categories