title: referencing int in scanf
body: <p>This question may look stupid but that's how people learn :).I learned C++ where you didn't have to worry about referencing int variable in cin>> . Today I was learning filehandling in C for school work but When I tried to run the program with this syntax, I got error.</p>
  
  <pre><code>scanf("%d\n %s\n",id, name);
  </code></pre>
  
  <p>But when I referenced id in scanf, the error was gone.i-e;</p>
  
  <pre><code>scanf("%d\n %s\n",&amp;id, name);
  </code></pre>
  
  <p>Why is this so? I will be very thankful for answering this noob question..</p>