In C runtime environment, which one of the following is stored in heap?

GATE · 2026 · CS · Set 2 · Computer Science & IT

In C runtime environment, which one of the following is stored in heap?

  1. A.

    A static variable declared inside a function

  2. B.

    An array of integers declared inside a function

  3. C.

    A dynamically allocated array of integers created using malloc() function call

  4. D.

    Return address of a function

Attempted by 1171 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…