Philosophy is not an infinite loop inside, philosophy is a finite code outside.
workflow
1
2
3
$ vim philosophy.c
$ # input the code
$ gcc philosophy.c -o philosophy && ./philosophy | head -n 10
en
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include<stdio.h>
#include<string.h>
intmain(){charquestion[]="What is ";charidea[]="philosophy";charprefix[]="philosophy of ";charsymbol[]="?";chariteration[42];// assume 42 is infinite ∞
while(1){printf("%s%s%s%s\n",question,iteration,idea,symbol);strcat(iteration,prefix);}}
What is philosophy?
What is philosophy of philosophy?
What is philosophy of philosophy of philosophy?
What is philosophy of philosophy of philosophy of philosophy?
...
zh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include<stdio.h>
#include<string.h>
intmain(){charquestion[]="什么是";charidea[]="哲学";charsuffix[]="的哲学";charsymbol[]="?";chariteration[42];// assume 42 is infinite ∞
while(1){printf("%s%s%s%s\n",question,idea,iteration,symbol);strcat(iteration,suffix);}}
什么是哲学?
什么是哲学的哲学?
什么是哲学的哲学的哲学?
什么是哲学的哲学的哲学的哲学?
……
idea
Philosophy is not an infinite loop inside, philosophy is a finite code outside.