I recall from somewhere:
int main = 0;
This code compiles (cleanly!), but segfaults. int main = 0;
This code compiles (cleanly!), but segfaults.EDIT: Your original post contained
int main=0; const int main = 0xC3;
...which is just a return. Or you can get fancy and make it exit successfully by clearing eax first: const int main = 0xC3C031; main=0;