this post was submitted on 10 Nov 2024
201 points (95.5% liked)

Programmer Humor

32710 readers
929 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 11 points 1 month ago (1 children)
$ echo 'main;' > main.c && gcc main.c 2>/dev/null && ./a.out
Segmentation fault (core dumped)
$ 
[–] TunaCowboy 9 points 1 month ago (1 children)

echo 'main;' | gcc -w -x c - && ./a.out

[–] [email protected] 4 points 1 month ago* (last edited 1 month ago) (1 children)
echo 'int main;' | gcc -w -x c - && ./a.out
[–] [email protected] 12 points 1 month ago
echo "Segmentation fault (core dumped)"