We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

C40

From Esolang
Jump to navigation Jump to search

C40 is a language based on C, but each function is at most 40 bytes.

Examples

Hello World

int main(){return!puts("Hello World!");}

a+b

int f(){int x;scanf("%d",&x);return x;}
void g(int x){printf("%d",x);}
int main(){g(f()+f());return 0;}

Background

They suggest that functions should be small so this is what they'd get