+ 1

Can anyone explain how this code is running

#include <stdio.h> int main() { fork(); fork() && fork() || fork(); fork(); printf("hi"); return 0; } And how HI is printing 20 times ? https://code.sololearn.com/c2kACp1nnw31/?ref=app

5th Nov 2019, 10:35 AM
Preity
Preity - avatar
2 odpowiedzi
5th Nov 2019, 2:52 PM
Preity
Preity - avatar
0
doesnt seem to work for me.
5th Nov 2019, 1:28 PM
Stephen Frey