Power in c uses pow() function to calculate power of a number, which must use “#include<math.h>”, given by the user.
What is Power function in c
The pow() function determines x raised to the power of y,given two numbers and their base and exponent which is “xy” and returns x raised to the power of y. Essentially, the c pow() function is used to determine exponent value and calculate the number’s power, which must use #include<math.h>.
Example – pow(5 , 3); Then we will get the result as 5^3, which is 125.
Syntax
syntax for C Pow() Function: