^ Bitwise Operators in C, Binary XOR Operator copies the bit if it is set in one operand but not both.
C Programming Language Operators and Enums in C Language (Article) Operators and Enums in C Language (Program)
1064Program:
#include"stdio.h" void main() { unsigned int a = 60; /* 60 = 0011 1100 */ unsigned int b = 13; /* 13 = 0000 1101 */ int c = 0; c = a ^ b; printf(" Value of c is %d\n", c ); }
Output:
Value of c is 49 Press any key to continue . . .
This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.