engineering computer science MCQ #2164

The function `free()` is used to

engineering computer science MCQ #2164

  1. Question 1

    Q1. The function `free()` is used to

    • A) allocate memory on the heap
    • B) free allocated memory
    • C) check if a pointer is NULL
    • D) make a pointer point to NULL

    Answer: free allocated memory

    Explanation: free() is used to deallocate memory that was previously allocated using malloc() or similar functions.