The following C program is executed on a Unix/Linux system: #include…
GATE · 2019 · CS · Computer Science & IT
The following C program is executed on a Unix/Linux system:
#include <unistd.h>
int main() {
int i;
for (i=0; i<10; i++)
if (i%2 == 0) fork();
return 0;
}
The total number of child processes created is ________.
Attempted by 275 students.
Sign up free to check your answer
Sign up freeLoading lesson…