please check the problem in the code.
Segmentation fault
please look over the problem
the output for given example is shown to be 10. But i think it should be 12 as 10 xor 6 gives 12. can you tell if i am understanding the question wrong or is there some problem in given example
Can u please put it again on the doubt portal ? I will be unable to solve ur doubt currently