I have an array that have a string of nine number in it. I would like to know the code that would allow me to take for example the two first and two last number of this string and put them in a new array. Then I would use strcpy to have 2 array (with the 2 first and 2 last number). Finally, I would like to add them together and add each number together.
thanks, It's really great having some help when we need itCode:987654321 --> is my initial array 9 8 2 1 --> my four number that I took from my first array 9 8 2 1 --> the exact copy of those four number 18 16 4 2 --> the addition of those numbers (grouped in the array) 1+8+1+6+4+2 = 22 --> 22 is the result I seek