The ^ operator in C-based languages is XOR, not power.