In C what does this statement do?
*p1 ^= *p2;
p1 and p2 are char pointers pointing to two different address of a char
p1
p2
When apply ^ on char variable, just regard it as int.
^
char
int
define VALUE 11 char c = VALUE; int i = VALUE;
Cause you can think that the value of c or i are same in memory.
c
i