title: C4700: uninitialized local variable
body: <p>When I compile this code it says <strong>"error C4700: uninitialized local variable 'b' used".</strong>  I'm not sure what I have to do now to fix this problem.  I'm neither an IT student or technican but I very like to learn C++ and I'm learning it by myself. I've been on this for 1 day. </p>
  
  <p>Many thanks</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;iostream&gt;
  
  //A. 
  //1--
  void InputArray(int *a, int &amp;n)
  {
      printf("Insert n = ");
      scanf("%d", &amp;n);
      a = new int[n];
      for (int i=0; i&lt;n; i++)
      {
          printf("Enter the key's a[%d] values: ", i);
          scanf("%d",&amp;a[i]);
      }
  }
  
  
  void main()
  {
      int *b, m;
      InputArray(b, m);
  }
  </code></pre>