What is the simplest standard conform way to produce a Segfault in C?

raise() can be used to raise a segfault:

raise(SIGSEGV);

Leave a Comment