Anonymous user
Exponentiation order: Difference between revisions
→{{header|C}}: fixed output
(→{{header|Wren}}: Library name change.) |
(→{{header|C}}: fixed output) |
||
Line 168:
C does not have an exponentiation operator. The caret operator '^' performs xor bitwise operation in C. The function pow in the standard C Math library takes two arguments.
<lang C>#include<stdio.h>
#include<math.h>
int main()
{
}</lang>
{{out}}
<pre>
(5 ^ 3) ^ 2 = 15625
5 ^ (3 ^ 2) = 1953125
</pre>
=={{header|C#}}==
<lang csharp>
|