Hello all, i'm trying to get the result of an expression using the exponential (^) but it returns wrong values:
printf("%d\n", 3^0);
printf("%d\n", 3^1);
printf("%d\n", 3^2);
output:
3
2
1
Do you know what i'm doing wrong? I'm using gcc compiler.
Thanks.