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

program for insertion ,deletion,sorting in double link list

2278


What is the highest level of cohesion?

578


Can destructor be overloaded?

595


Explain the concepts involved in Object Oriented programming.

633


What is difference between polymorphism and inheritance?

617






What is polymorphism in oop example?

513


Can we define a class within the interface?

553


Why is polymorphism used?

583


Why oops is important?

608


Which language is not a true object oriented programming language?

640


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4239


What is ambiguity in inheritance?

625


What is inheritance and how many types of inheritance?

617


What are objects in oop?

608


Why do we need polymorphism in c#?

684