If I would like to copy array like this:
suppose I got and array of char, i.e. char buffer. The want to copy them by reference to char* mydata.
but then if I change buffer, mydata also change. Is there any way to let the buffer change its address so that I don't have to copy them to another location.Code:mydata = buffer;