Okay, there's more explained here than what the title says,
Let's say I store a string split up into characters into an array.
char a[40] = "AE4B9";
And let's say I want read the 5th character in the array and store that in another variable as an integer. How can I do that?
What I'm basically doing is adding up all the characters in the string, each character is a hexadecimal number. So, A is 10, E is 14, 4 is 4, B is 11, 9 is 9.
I guess I should be more clear of what I'm doing, I will explain it better.
I will have 2 strings and they will be stored in 2 separate arrays.
char a[40] = "AE4B9";
char b[40] = "BEF1C";
Then I would add them together something similar to this:
AE4B9
BEF1C +
----------
Since these are characters, not integers, I have to somehow make them integers so I can actually add them.
So for the example above, we will start with the 9 + C, which would be a[4] + b[4]. Since they are hexadecimal, the 9 would be 9 and the C would be 12. Then 9 + 12 would equal 21.