Wrong answer by my compiler

sir, why my compiler is giving wrong ans in only this case. all other powers are fine .
int numberOfZeros(int n) {
int j=2;
int x = pow(5,j);
return x;
}

isme 24 return kr raha h. and please tell if any other cases are also there.

which ques are u referring to??

sir i am asking about pow() . IS there any restriction to the pow() function. it is giving 24 on pow(5,2) . Other values are correctly given


its giving correct output… there may be some other error in ur code
and as such there is no restriction for pow

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.