this post was submitted on 10 Nov 2024
185 points (95.1% liked)

Programmer Humor

32473 readers
620 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 6 days ago (3 children)
$ echo 'main;' > main.c && gcc main.c 2>/dev/null && ./a.out
Segmentation fault (core dumped)
$ 
[–] [email protected] 9 points 6 days ago (2 children)

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

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