I have a character array in C:
Array = {'7', '.', '8', '*', '3', '-', '4', '.', '5', '6', '+', '1', '0'}
The above is a maths equation 7.8 * 3 - 4.56 + 1
where I have stored each character as a single element in the array.
I am trying to change the array so that the decimal numbers are one element. So, the array should look like:
Array = {'7.8', '*', '3', '-', '4.56', '+', '1'}
I would appreciate it if somebody could show me how to do this clearly as I am a beginner.
I am new to C so I apologise if the question doesn't make complete sense. Thanks for any help in advance!