the difference between new and malloc

Answer Posted / cl

The difference is the invocation of constructor: malloc
does not do it.

Is This Answer Correct ?    11 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

1654


What is object in oop with example?

704


can inline function declare in private part of class?

3660


write a programe to calculate the simple intrest and compund intrest using by function overlading

1670


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1149






What is class encapsulation?

600


Why is there no multiple inheritance?

572


Is html an oop?

584


What is meant by multiple inheritance?

740


What does no cap mean?

592


Why is oop better than procedural?

606


What is encapsulation and abstraction? How are they implemented in C++?

637


What does and I oop mean?

618


What is a class oop?

594


what are the different types of qualifier in java?

1845