C example: merge the two array