Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
Pro*c/c++ Tutorial
→
Pro*c/c++ Interview Questions in Pro*c/c++ Tutorial
→
What Are The Differences Between New And Malloc?
1.
What Are The Differences Between New And Malloc?
Answer»
New initializes the
ALLOCATED
memory by
CALLING
the constructor. Memory allocated with new should be released with
DELETE
.
MALLOC
allocates uninitialized memory.
The allocated memory has to be released with
FREE
. New automatically calls the constructor while malloc (doesn’t).
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
Define Scope Resolution Operator?
Define Inline Function?
What Do You Mean By Implicit Conversion?
What Are The Differences Between New And Malloc?
What Is Class Invariant?
What Is The Data Type Of Dual Table?
How To Display Row Numbers With The Records?
What Is The Maximum Number Of Triggers That Can Be Applied To A Single Table?
What Are Privileges And Grants?
What Is The Parameter Mode That Can Be Passed To A Procedure?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies