title: Fscanf doesn't storing value from file in variables in c
body: <p>I'm trying to read value from file Balance.txt but fscanf is not storing any value ;</p>
  <p>Thank you!! in advance!!</p>
  <pre><code>int bal[5];
  
  //recipt generation
  FILE *fp,*dp;
  //reading balance
  dp=fopen(&quot;Balance.txt&quot;,&quot;r&quot;); 
  fscanf(dp,&quot;%d&quot;,bal[0]);
  printf(&quot;%d\n&quot;,bal[0]); 
  </code></pre>