int findNumber(char *exp,int i,int *num)
{
int k=i;
char *p;
p=exp[i]; //<-- here
while(*p>='0'&&*p<='9')
{
(*num)=(*num)*10+(*p);
k++;
p++;
}
return k;
}
i keep getting that error in line: (p=exp[i];) Im trying to send a char array, and (i,num) integers, the 'i' im just putting it to be 0 for now, until the code works so dont give attention to it. but the function should return the place of the first character in "exp" that is not a number, with being sure that all the ones before are numbers.