The function `malloc()` is used to
Q1. The function `malloc()` is used to
Answer: allocate memory on the heap
Explanation: malloc() dynamically allocates memory on the heap. allocate memory on the heap is correct because it matches what the question requires. NET computer science MCQs often test this core concept.