Is it possible to restore the normal execution flow of a C program, after the Segmentation Fault error?
struct A { int x; }; A* a = 0; a->x = 123; /
In POSIX, your process will get sent SIGSEGV when you do that. The default handler just crashes your program. You can add your own handler using the signal() call. You can implement whatever behaviour you like by handling the signal yourself.