Explain the difference between new() and malloc() in c++?


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

Post New Answer

More C++ General Interview Questions

How can I improve my c++ skills?

0 Answers  


What is long in c++?

0 Answers  


How a macro differs from a template?

0 Answers  


Explain the difference between 'operator new' and the 'new' operator?

1 Answers   Lucent, TCS,


when can we use copy constructor?

6 Answers   HP,






What does it mean to declare a destructor as static?

0 Answers  


Where do I find the current c or c++ standard documents?

0 Answers  


Why do we use using namespace std in c++?

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,


Is there any problem with the following: char *a=NULL; char& p = *a;?

1 Answers  


In the derived class, which data member of the base class are visible?

0 Answers  


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

0 Answers  


Categories