so when i print the q[0] it will show abc as the result. is there any way to copy the q[0] element by element into another array. so it will create another copy of array like a[3].
Thanks for the reply. I'm quite familiar with the for loop. I understand that i had copied the first two elements into p, and the q is pointing to the whole array of a. Is it possible to copy into array(like i did to p) from the pointer q?
For your que :
"is there any way to copy the q[0] element by element into another array. so it will create another copy of array like a[3]."
Please have a look below sample code: