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

PYQ GATE 2026

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 1092 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…