What is difference between new and malloc?

Answer Posted / vivin

malloc is a dynamic memory allocation for pointers in C language. It stands for memory allocation. It is used to allocate continuous block of memory.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between multiple inheritance and multilevel inheritance?

606


What is static in oop?

591


What are two types of polymorphism?

616


Write a c++ program to display pass and fail for three student using static member function

2820


What is the use of oops?

625






What is encapsulation in oop?

613


2. Give the different notations for the class.\

1594


What is encapsulation process?

586


Why do while loop is used?

579


i got a backdoor offer in process global,Bangalore..Can i work with it?

2330


What are objects in oop?

612


Can we override main method?

609


Why multiple inheritance is not possible?

606


What is polymorphism and example?

594


What is overloading in oop?

579