Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <unistd.h>
  3. #include <sys/types.h>
  4. int main()
  5. {
  6. pid_t pid;
  7. pid = fork();
  8. if (pid != 0)
  9. {
  10. printf("Pertama\n");
  11. }
  12. else
  13. {
  14. printf("Kedua\n");
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement