add 2 programs to demo memory allocation in C programming