Here we need to see no of times the innermost loop is running and hence no of times the fork() call is invoked..
So i ranges from 0 to 4 and j also ranges from 0 to 4..
So total times innermost loop runs = 5 * 5 = 25
So fork() is called 25 times..
So we know :
If there is no condition of fork() invocation then no of parent process = 1
No of child processes = 2n - 1
Hence n = 25 here actually
Hence no of child processes created = 225 - 1
= 33554431