Computer Science, asked by mahtabtipu588, 7 months ago

The result of the function call pow(2, 3, 2) function is:
a) 64
b) 0
c) Error, pow() takes only 2 arguments
d) 4
Answer​

Answers

Answered by jeetpgandhi
38

Answer:

D

Explanation:

please mark me as brilliant

Answered by aditijaink283
1

Answer:

(b) 0

Explanation:

Return the value of 2 to the power of 3, modulus 2

Hence, the answer is 0.

Given two numbers, radix and exponent, the pow () function detects that x is a power of y, that is, a power of xy. Basically, in C, exponential values ​​are calculated using the pow () function. pow () is a function that gets the power of a number, but to use this pow () function, you need to use #include in c / c ++. Then two numbers are passed. Example – pow (4, 2); Then the result is 4 ^ 2, or 16.

parameters: method takes two arguments:

x: floating point base value

y: floating point power value

pow() function takes a 'double' as an argument and returns a 'double' value increase. This function does not always work for integers.

#SPJ2

Similar questions