GATE CS 2026 (Afternoon) — Question 19

Programming in CFunctions, Parameter Passing, Scope Rules, RecursionMCQ1 mark · −1/3 if wrongMedium

Consider the following three ANSI-C programs, P1, P2 and P3
Question image
Which one of the following statements is true?
  1. A
    Only P1 will compile without any error
  2. B
    Only P2 will compile without any error
  3. C
    Only P3 will compile without any error
  4. D
    All three programs P1, P2, and P3 will compile without any error
Practise the full 2026-AN paper
Challenge a friend: WhatsApp Telegram
From RENYXERAPractise this subject in the exam simulatorTimed, GATE-style tests with analytics that find your weak topics.
Practise more on Functions, Parameter Passing, Scope Rules, RecursionTimed, 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