SyntaxFix
Write A Post
Hire A Developer
Questions
It is printing twice because you are calling printf twice, once in the execution of your program and once in the fork. Try taking your fork() out of the printf call.