How a macro differs from a template?


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

Post New Answer

More C++ General Interview Questions

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,


What is pure virtual function?

0 Answers  


What is a float in c++?

0 Answers  


Is c++ a software?

0 Answers  


How to avoid a class from instantiation?

8 Answers   Symphony,






List the features of oops in c++?

0 Answers  


Who created c++?

0 Answers  


What do you mean by friend class & friend function in c++?

0 Answers  


Which compiler does turbo c++ use?

0 Answers  


Discussion on error handling of C++ .

0 Answers  


Which operator can not be overloaded in C++?

1 Answers  


How do I run c++?

0 Answers  


Categories