What is the shortest code that will return a segmentation fault (SIGSEGV) but compiles properly with gcc -Wall -Werror -O
?
int main(){return main();}
26 characters.
Update
I found a better one.
int main(){goto*0;}
19 characters.
Published on 15 Jun 2012 by Stanley Tan