The first example does not work when you go to delete the pointer. The program either hangs when I add the null terminator or without it I get:
Debug Assertion Fai
Do not forget to use
delete []
whenever you are allocating something with [].