I wanted to deep and shollow copy with dynamic array? it is possible and how

In reply to @nurag:

In reply to muku_383:
I don’t understand if there is a problem in making a deep copy of the dynamic array the way you have coded. Can you please specify the error line or the issue more clearly?

hi,
i have doubt with dynamic array using in shallow copy, instead of using int i = 1;
i wanted to shallow copy of dynamic array above code is only for understanding. can you help me for same