Here is the code
#include <stdio.h>
int main()
{
int a;
printf("%d\n",(3^6));
printf("%d",(a^a));
return 0;
}
I am getting the below output on executing the above code.
5
0
Shouldn't the output be 729? 3 to the power of 6 is 729. I could not understand the logic of why it is returning 5?