Ace Your C++ Skills 2025 – Rock the ‘Thinking in C++’ Challenge!

Question: 1 / 565

Which functions does C provide for dynamic memory allocation?

new and delete

malloc() and free()

C provides the functions malloc() and free() for dynamic memory allocation, not new and delete (which are related to C++). Option C suggests functions called alloc() and dealloc(), but those do not exist in C. Option D includes functions create() and destroy(), which are also not valid function names in C. Thus, the correct answer is B.

Get further explanation with Examzify DeepDiveBeta

alloc() and dealloc()

create() and destory()

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy