pow() function: The function pow(a, b, c) is calculated as?

  • (a % b) ** c
  • (a ** b) % c
  • (a / b) ** c
  • (a ** b) / c

The pow(a, b, c) is evaluated as (a ** b) % c. This is because in most cases, a ** b is very large, and thus, a modulo is taken at the end. 

Comments