How Is Memory Allocated/deallocated In C ? How About C++ ?

Scholar Asked on April 21, 2018 in COMPUTER ENGINEERING.
Add Comment
1 Answer(s)

Memory is allocated in C using malloc() and freed using free(). In C++ the new() operator is used to allocate memory to an object and the delete() operator is used to free the memory taken up by an object.

Scholar Answered on April 24, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.