ExamVeda
Login
Home
This question belongs to Computer Science Linux
Linux
?

How many times printf() will be executed in the below mentioned program?
main() 
{
      int i;<br><br>       
      for (i = 0; i < 4; i++)      
      fork();
      printf("my pid = %d\n", getpid());
}

Answer & Solution
Correct Answer: Option C
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.