find total no of processes i am getting 29 as answer as all will be child process except one parent process plz explain how answer is 24 here i am very confused in such question by drawing diagram
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
pid_t pid = fork();
pid = fork();
pid = fork();
if(pid == 0)
{
fork();
}
fork();
return 0;
}