title: passing argument 1 of 'atoi' makes pointer from integer without a cast....can any body help me
body: <pre><code>#include&lt;stdio.h&gt;
  #include&lt;string.h&gt;
  #include&lt;stdlib.h&gt;
  
  int main(){
      int n;
      int a,b,ans[10000];
      char *c,*d,*e;
      int i = 0;
      c = (char*)(malloc(20 * sizeof(char)));
      d = (char*)(malloc(20 * sizeof(char)));
      scanf("%d",&amp;n);
      while(i &lt; n){
              scanf("%d",&amp;a);
              scanf("%d",&amp;b);
              itoa(a,c,10);
              itoa(b,d,10);
              a = atoi(strrev(c)) + atoi(strrev(d));
              itoa(a,c,10);
              e = c;
              while(*e == '0')e++;
              ans[i] = atoi(strrev(e));
              i++;
              }
      i = 0;
      while(i &lt; n){
              printf("%d\n",ans[i]);
              i++;
              }
  }
  </code></pre>