the difference between new and malloc

Answer Posted / pushpankar mishra

malloc need type casting where as the new operator does not
require this incase if it is character type then char* is
needed in malloc where as for new we do not need this

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is interface in oop?

664


Why do we use oops?

593


What is the difference between a constructor and a destructor?

613


Can main method override?

585


What is the difference between encapsulation and polymorphism?

596






2. Give the different notations for the class.\

1592


How do you answer polymorphism?

577


Do you know about multiple inheritance?

641


How many human genes are polymorphic?

573


officer say me - i am offered to a smoking , then what can you say

1581


Explain the advantages of inheritance.

675


What is difference between data abstraction and encapsulation?

617


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1657


What does and I oop mean in text?

625


Why oops is important?

614