I am very new to C
I am trying to put something to the power of something
eg. 5^3=125;
but when I code
#include <math.h>
...
printf("%d", 5^3);
I get 6. Am i doing something fundamentally wrong??
I am very new to C
I am trying to put something to the power of something
eg. 5^3=125;
but when I code
#include <math.h>
...
printf("%d", 5^3);
I get 6. Am i doing something fundamentally wrong??