i thought 10^2 in c equals 100
it gives me something else
how to do power
Printable View
i thought 10^2 in c equals 100
it gives me something else
how to do power
well can you use the math.h library which has the function pow(x,y) where
x^y in mathematical terms.
edit: I'm not quite sure what ^ does, I know it doesn't do exponentials but if someone could clarify it would be great
You are correct about the pow function.
And as for ^, it is a bitwise XOR.