What is the output of the following program? main() { int a = 10; if ((fork()…
ISRO Scientist/Engineer SC · May 2017 · Computer Science
What is the output of the following program?
main()
{
int a = 10;
if ((fork() == 0))
a++;
printf("%d\n", a);
}- A.
10 and 11
- B.
10
- C.
11
- D.
11 and 11
Attempted by 520 students.
Sign up free to check your answer
Sign up freeLoading lesson…