What is difference between malloc()/free() and new/delete?


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

Post New Answer

More C++ General Interview Questions

Can you think of a situation where your program would crash without reaching the breakball, which you set at the beginning of main()?

1 Answers  


What is the difference between #import and #include?

0 Answers  


write a program to add two numbers without using an arithmetic operator.

1 Answers   NIIT,


int *p = NULL; printf("%1d",p) ; what will be the output of this above code?

3 Answers   Microsoft,


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 are c++ files?

0 Answers  


How can I improve my c++ skills?

0 Answers  


Write a function to find the nth item from the end of a linked list in a single pass.

0 Answers   Huawei,


Which ide is best for c++?

0 Answers  


advantages and disadvantages of using Borland C++ / version 5.

1 Answers  


There is a magic square matrix in such a way that sum of a column or a row are same like 3 5 2 4 3 3 3 2 5 sum of each column and row is 10. you have to check that matrix is magic matrix or not?

1 Answers   TCS,


what are the iterator and generic algorithms.

0 Answers  


Categories