i thought 10^2 in c equals 100
it gives me something else
how to do power
This is a discussion on what is the power command in c.. within the C Programming forums, part of the General Programming Boards category; i thought 10^2 in c equals 100 it gives me something else how to do power...
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.