I need help, I have a long long variable in hex. I want to convert them into a long long array so that I can access the individual hex value.
For example.
long long a = 0xA1B2C3;
I want to store it to array b so the output will look like this.
long long b[6];
b[0] = A
b[1] = 1
b[2] = B
b[3] = 2
b[4] = C
b[5] = 3
Can someone help me on this? TIA :) Im using C++
an easy way is to print it to a string in hex format, then grab the characters, and convert back with a lookup table of the numeric values of the letters.