关于C语言的pow函数
程序代码: char *str="123",ch;//我想输出321
int i=strlen(str),j,number=0;
for(j=i-1;j>=0;j--){
number+=(*(str+j)-'0')*pow(10,j);
//printf("%d\n",number);
}
printf("%d\n",number);
我想问一下我结果为什么输出了320
char *str="1234 这个时候就可以出书4321









