Here is a quick way you can do it:

Let m_arr be an array of size m

Let n_arr be an array of size n

int *b_array = malloc((m + n) * sizeof(int));

memcpy(b_arr, m_array, m * sizeof(int));

memcpy(b_arr + m * sizeof(int), n_array, n * sizeof(int));