Now I know from this post about assigning one struct to another that I can assign a struct variable to another one of the same type and a shallow copy will happen.
struct Test t1;
struct Test t2;
t2 = t1;
But what if I do this?
struct Test *t1;
struct Test *t2;
t1 = malloc(sizeof(struct Test));
t2 = malloc(sizeof(struct Test));
//assign t1 and t2's fields some data
*t2 = *t1;
Will the same memcpy happen in this case?