educative.io

Unclear regarding the fork

Hi guys,

So it seems I don’t quite understand the fork() call. When going through the quiz, I got questions wrong surrounding how many times the program would print a particular like after the system call; in many cases twice rather than once. Would appreciate explaining this to me