SyntaxFix
Write A Post
Hire A Developer
Questions
In C ^ is the bitwise XOR:
^
0101 ^ 1100 = 1001 // in binary
There's no operator for power, you'll need to use pow function from math.h (or some other similar function):
pow
result = pow( a, i );