I'm trying to convert ASCII strings into Binary so i can add Parity to it (Hamming Code). But the output is not right at all.
If i enter 'A' on the input it should return: 01000001 and i've tried it with 'B' but it doesn't return that
unsigned char bits[8];
for(int i = 8; i >= 1; i--){
i expect the output to be 01000001 for 'A' but the actual output is 00100000 Same for ABC or B or C