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.

Which one of the following statements is true?
- A.
Only P1 will compile without any error
- B.
Only P2 will compile without any error
- C.
Only P3 will compile without any error
- 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 freeLoading lesson…