Shallow and deep copy

name is a pointer , and by 'cout<< name 'is should print address of that memory.

HI Satvik, please post the corresponding question and code so that your query can be resolved.