为什么这个程序打印"分叉!"4次?
#include <stdio.h> #include <unistd.h> int main(void) { fork() && (fork() || fork()); printf("forked!\n"); return 0; }
c unix linux fork systems-programming
c ×1
fork ×1
linux ×1
systems-programming ×1
unix ×1