GATE CS 2026 (Afternoon) — Question 17

Programming in CDynamic Memory Allocation & File HandlingMCQ1 mark · −1/3 if wrongEasy

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
Practise the full 2026-AN paper
Challenge a friend: WhatsApp Telegram
From RENYXERAWhat rank do your marks get?GATE score, likely All-India Rank and qualifying marks for your category.
Practise more on Dynamic Memory Allocation & File HandlingTimed, in the real exam interface · free to start

A GATE question every morning

One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.

Join
Stuck? Ask in the student group