//file: test4 compile as test4 #include int main() { char *x = (char*)malloc(10); x[10] = 'a'; return 0; }