Please execute the following statement in code: unsigned num1, num2 , result;
result = ~(num1 ^ num2);
this statement will result expected output.