I'm new and I don't want to waste anyone's time, but I searched and found nothing on this. I am to write a simple CRC-16 routine. My compiler (microsoft) will not accept a char[] as an operand when I try to execute the xor.
char msg[5] = {'A','B','C'};
int generator = 0x8003;
msg ^= generator;
error C2296: '^=' : illegal, left operand has type 'char [5]'
I've seen code all over the place that uses char as an operand. What am I doing wrong? Bear with me, I'm just learning.