Multiple choice general knowledge science & technology

To raise any number to a power, use?

  1. the exponent symbol ^.

  2. the built-in library function pow(x,y).

  3. the built-in library function pow10(x).

  4. concatenation.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The pow(x, y) function from math.h calculates x raised to the power y. In C, the ^ symbol is bitwise XOR, not exponentiation. The pow10() function exists only for powers of 10.