You must log in or register to comment.
$ echo 'main;' > main.c && gcc main.c 2>/dev/null && ./a.out Segmentation fault (core dumped) $
echo 'main;' | gcc -w -x c - && ./a.out
echo 'int main;' | gcc -w -x c - && ./a.out
echo "Segmentation fault (core dumped)"