왜 6번째줄에 저렇게 나오는지랑

그리고 count변수 count++이렇게 해놨는데

왜 6번째줄에서 다시 초기화되고 순서대로 안증가하는지가 궁금하고 해결하고 싶은데..


이하는 내소스

#include <sys/types.h>

#include <unistd.h>

#include <stdlib.h>

#include <stdio.h>


int main(){


    pid_t pid;

    int ProcNo;

    int count = 0;

   

for(ProcNo=1;ProcNo<6;ProcNo++){


pid = fork();

    if(pid>0){

    printf("<%d - M >%d ",ProcNo,pid,count++);

}



}

return 0;

}