Why can't POW function run like this?

CSDN Q & A 2021-12-30 05:37:26 阅读数:29

pow function run
#include<stdio.h>#include<math.h>int main(void){int sum =0,i,a;for(i =1;i<5;i++){a = pow(i,i+1);sum+=a;} printf("%d\n",sum);return 0;}

```




Refer to the answer 1:

What's wrong




Refer to the answer 2:
版权声明:本文为[CSDN Q & A]所创,转载请带上原文链接,感谢。 https://primo.wiki/2021/12/202112300537243913.html