GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2026 set2

GATE 2026 set2 · CS · MCQ · 1 mark · Compiler Design › Runtime Environments

GATE 2026 set2 Computer Science and Information Technology question: In C runtime environment, which one of the following is stored in heap?

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

Show answer

Official answer: C

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion