P.S.- Just kidding. First, get the length of your "MP 2 " string, and the length of your " X +1.2345" string. Then, plug everything into a for loop that copies character-wise those arrays into b[]. Hope you understood that. I omitted some details and steps to force you to think a bit.