Consider the following three ANSI-C programs P1, P2, and P3. Which one of the…

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

Consider the following three ANSI-C programs P1, P2, and P3.

image.png

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

Attempted by 986 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…