title: Basic C Programming - How to solve "Run-Time Check Failure #3 - The variable 'integer1' is being used without being initialized."
body: <p>I'm a newbie who is trying to compile a simple code. This is the code I'm trying to compile.</p>
  
  <pre><code>    #include &lt;stdio.h&gt;
  
  int main() 
  {
      int integer1; 
      int integer2; 
      int sum; 
  
      printf("Enter first integer\n"); 
      scanf( "%d", integer1 ); 
  
      printf( "Enter second integer\n" ); 
      scanf( "%d", integer2 ); 
  
      sum = integer1 + integer2; 
  
      printf( "sum is %d\n", sum ); 
      return 0;  
  }  
  </code></pre>
  
  <p>I am using the Visual Studio 2017 as compiler and I get the error below. </p>
  
  <blockquote>
    <p>Run-Time Check Failure #3 - The variable 'integer1' is being used without being initialized.</p>
  </blockquote>
  
  <p>Could you please help?</p>