Sports GK Questions and Answers 2024 (Latest Updated)

Awards & Honours GK Questions 2024 (Latest Updated)

Question

With every use of memory allocation function, what function should be used to release allocated memory which is no longer needed?

A dropmem()
B dealloc()
C release()
D free()
Answer & Explanation
Option: [D]

The library function free() is used to deallocate the memory that is no longer be used. This deallocated memory is dynamically allocated by malloc, calloc and realloc previously.

Advertisement
Article and Schedule Quiz Start Test!
DOWNLOAD CURRENT AFFAIRS PDF FROM APP

Random GK Questions

Assam Direct Recruitment Test Series

Computer Science Topics