title: warning: assignment makes pointer from integer without a cast [-Wint-conversion] p = (i + 1) * 100;
body: <p>I am trying to fill array with the numbers without using <code>scanf</code>. I encountered  warning: <code>assignment makes pointer from integer without a cast [-Wint-conversion]</code></p>
  <pre><code>p = (i + 1) * 100;
    ^
  </code></pre>
  <p>and when i try to print the array the array output random values. How do i solve it?</p>
  <pre><code>#include&lt;stdio.h&gt;
  
  int main() {
      int nums[8], i;
      int *p;
      p = nums;
      for (int i = 0; i &lt; 8; ++i)
      {
          p = (i + 1) * 100;
          p++;
      }
  
      return 0;
  }
  </code></pre>