title: Error:Assignment makes pointer from integer without a cast
body: <p></p>
  
  <pre><code>int findNumber(char *exp,int i,int *num)    
  {    
      int k=i;    
      char *p;    
      p=exp[i]; //&lt;-- here
      while(*p&gt;='0'&amp;&amp;*p&lt;='9')    
      {
          (*num)=(*num)*10+(*p);
          k++;
          p++;
      }
      return k;
  }
  </code></pre>
  
  <p>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. </p>