aspand: I believe it would be the
polynomial that is being evaluated.
On your second for loop
for(m=0;m<i;m++) /* should there be braces here?*/
so it looks like this
Code:
int EVALUATE (int poly[],int num) {
int i,m,temp,total=0,result=1;
for(i=9;i>=0;i--) {
temp=poly[i];
for(m=0;m<i;m++) {
result*=num;
}
total+=(result*temp);
}
return printf("%d",total);
}
BTW your return statement there return the number of successful conversions that where printed (I think), but I know it has something to do with successes or failures.
kwigibo