For crash:
abort()
#include <signal.h>
raise(SIGSEGV); // simulates a standard crash when access invalid memory