Consider the following program snippet. Assume that the program compiles and…
PYQ GATE 2026
Consider the following program snippet. Assume that the program compiles and runs successfully. Further, assume that the fork() system call is always successful in creating a process.

The total number of times that the printf statement gets executed is ________. (answer in integer)
Attempted by 129 students.
Sign up free to check your answer
Sign up freeLoading lesson…

