How to raise to the power of

Viewed 72720

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??

5 Answers
Related