dynamically allocate a string object and save the address in the pointer variable p.
By Anita Kuphal at Oct 16 2020