Which of the following header files is required to be included at the beginning of a program to find the value of
a raised to b using the pow() function?
a) power.h
b) math.h
c) numbers.h
d) mathematics.h
Answers
Answered by
0
Explanation:
The pow() function takes two arguments (base value and power value) and, returns the power raised to the base number. For example,
[Mathematics] xy = pow(x, y) [In programming]
The pow() function is defined in math.h header file.
C pow() Prototype
double pow(double x, double y)
The first argument is a base value and second argument is a power raised to the base value.
To find the power of int or a float variable, you can explicitly convert the type to double using cast operator.
int base = 3;
int power = 5;
pow(double(base), double(power));
Answered by
0
mathematics
Explanation:
thanku for asking questions
Similar questions