We use malloc and calloc for

2017

We use malloc and calloc for

  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 636 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: Dsssb Tgt Computer Science Paper 2