Identify what the operator ^ does
2011 Sep 11 10:25 AM MDT | Programming18 [2011]3
What does the operator ^ do? Does the carat mean **XOR**, or does it mean **exponent**? One simple debug statement will solve the problem:
What is `0 ^ 1`? It will tell you three possibilities:
- 1: XOR
- 0: Power
- Other: your programming language is strange.