A example showing the misuse of poiter allocation. Dangling pointer. Socpe of pointers in C and C++.