Join our Telegram Channel

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
GkSeries apsc prelims 2023 test series
Advertisement
GkSeries Android App

Today's Top Current Affairs

Current Affairs MCQs

State-wise Current Affairs

General Knowledge

Month-wise Current Affairs 2022

Category-wise Current Affairs

Jobs by Qualification

Free Mock Test