Created
November 3, 2020 15:35
-
-
Save MwBakker/58d34d5efc5933d1a8fdc0ae0ccbd428 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main() | |
{ | |
som = 0; k = 4; | |
int pid, k, som; | |
pid = fork(); | |
if (pid == 0) | |
k = 5; | |
else | |
wait(0); | |
for (int i = 3; i <= k; i++) | |
som += i; | |
printf("%d", som); | |
} |
kamiccolo
commented
Nov 3, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment