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

How do you explain polymorphism?

811


What is class and example?

825


What is the significance of classes in oop?

813


What is the difference between procedural programming and oops?

780


What is a null tree?

867


2. Give the different notations for the class.\

1818


What is destructor give example?

818


What is pure oop?

864


Explain the advantages of inheritance.

883


Can you inherit a private class?

849


What is the renewal class?

2422


c++ program to swap the objects of two different classes

2138


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

1905


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1855


What is difference between polymorphism and inheritance?

821