The following C program main() { fork() ; fork() ; printf ("yes"); } If we…
ISRO Scientist/Engineer SC · 2018 · Computer Science
The following C program
main()
{
fork() ; fork() ; printf ("yes");
}
If we execute this core segment, how many times the string yes will be printed ?
- A.
Only once
- B.
2 times
- C.
4 times
- D.
8 times
Attempted by 872 students.
Show answer
Correct answer: C
The worked solution is available to enrolled students.
Video solution available to enrolled students.
Explore the full course: Iocl Engineers Officers Grade A Paper 2
Loading lesson…