title: error: invalid operands to binary *
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  #include &lt;math.h&gt;
  int main ()
  {
    char buf[] ="14:15:43";
    int i;
    char *p;
    int *array[3];
    i = 0;
     p = strtok (buf,":");  
    while (p != NULL)
    {
     array[i++] = p;
      p = strtok (NULL, ":");
    }
    for (i=0;i&lt;3; ++i) {
      //printf("%s\n", array[i]);
      array[i] = array[i] * 2;
   } 
  return 0;
  }
  </code></pre>
  
  <p>When I compile the above code I get this error:</p>
  
  <pre><code>split.c: In function ‘main’:
  split.c:16:16: warning: assignment from incompatible pointer type
       array[i++] = p;
                  ^
  split.c:21:25: error: invalid operands to binary * (have ‘int *’ and ‘int’)
       array[i] = array[i] * 2;
                           ^
  </code></pre>