Created
March 7, 2019 12:31
-
-
Save yoh2/25caf378a647a82d59c6882d505b65f8 to your computer and use it in GitHub Desktop.
ループも再帰も使わず (ある意味再帰ではあるが) Hello, World! を出力し続ける上にめっちゃ止めにくいやつ。
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
#include <stdio.h> | |
#include <unistd.h> | |
int main(int argc, char *argv[]) | |
{ | |
puts("Hello, World!"); | |
if(fork() == 0) | |
{ | |
execlp(argv[0], argv[0], (const char *)NULL); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment