#687 pow( , ,) function wrong

open
nobody
None
5
2012-09-26
2007-12-21
Anonymous
No

int i=2,j;
pow(10,i);
pow(11,j);

printf("%d %d",i,j);

output: 99 120 //should be 100 121

why ????????????????????????????

Discussion

  • Logged In: NO

    100-1=99
    121-1=120