C4
▊
the C in four functions interpreter
// the compiler that fits in a tweet
▶ Run
⚙ Compile
Ὕ1 Clear
⟲ Reset
bytecode
stream
Fibonacci
Hello World
Factorial
FizzBuzz
Pointer Demo
FILES
+
▸
main.c
▦
ssp.h
×
▦
stdarg.h
×
▦
stdio.h
×
run entry: main.c
main.c
printf is a builtin syscall · #define supported in .h files
1 2 3 4 5 6 7 8 9 10 11 12 13 14
int fib(int n) { if (n < 2) return n; return fib(n-1) + fib(n-2); } int main() { int i; i = 0; while (i < 10) { printf("fib(%d) = %d\n", i, fib(i)); i = i + 1; } return 0; }
(console cleared)