The following simple program
#include int main(int argc, char **argv) { char* arr=malloc(10); arr[10]=\'\\0\'; return 0; }