You will get 4 processes normally;
but please check the return value( i and j) of fork(),
if i<0 or j<0,haha....
About fork():
pid_t fork(void);
On success, the PID of the child process is returned in the parent's thread of execution, and a 0 is returned in the child's thread of execution. On failure, a -1 will be returned in the parent's context, no child process will be created, and errno will be set appropriately.