The most efficient way to implement an integer based power function pow(int, int)
Asked 07 September, 2021
Viewed 646 times
  • 56
Votes

What is the most efficient way given to raise an integer to the power of another integer in C?

// 2^3
pow(2,3) == 8

// 5^5
pow(5,5) == 3125

19 Answer