Dynamic allocation of character array


i tried to dynamically allocate character array of name…but this is giving me …you error please check my code by running and tell me where i went wrong …and if possible comment the correction


@Gaurav_dev copy constructor parameter was char array and not string!