We use malloc and calloc for

2017

We use malloc and calloc for

Answer: A. Dynamic memory allocationThe malloc and calloc functions are used for dynamic memory allocation in C programming. They allocate memory at runtime from the heap.

  1. A.

    Dynamic memory allocation

  2. B.

    Static memory allocation

  3. C.

    Both dynamic and static memory allocation

  4. D.

    None of the above

Attempted by 1323 students.

Show answer & explanation

Correct answer: A

The malloc and calloc functions are used for dynamic memory allocation in C programming. They allocate memory at runtime from the heap.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…