[C language] XOR example
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
unsigned char a,b,c;
a = 0x83;
b = 0x80;
c = a ^ b ;
printf ("The value of a is %X \n",a);
printf ("The value of b is %X \n",b);
printf ("The value of c is %X \n",c);
return 0;
}
Result :
The value of a is 83
The value of b is 80
The value of c is 3
0 意見:
張貼留言