Yes you can use mem copy
memcopy(B + sizeof(char) * no of element in B, A, sizeof (char) * no of elements in A);
if A has 5 elements, B has 3 elements
Go to end of B array and do memcpy from A to B according to the number of element in A.
But make sure that for B sufficient memory is allocated.
I hope this was you requirement.