What is happening here in pow function?
问题 I have seen various answer here that depicts Strange behavior of pow function in C. But I Have something different to ask here. In the below code I have initialized int x = pow(10,2) and int y = pow(10,n) (int n = 2) . In first case it when I print the result it shows 100 and in the other case it comes out to be 99 . I know that pow returns double and it gets truncated on storing in int , but I want to ask why the output comes to be different. CODE1 #include<stdio.h> #include<math.h> int main