title: global variable is not incrementing properly
body: <pre><code>int count;
  int main(){
  count=0;
  
      printf("%6d\t    %6d\t    %6d\t ",i+1,multiFib(i),count);
  }
  
  int multiFib(int x){
  
  if (x&lt;2){
      return 1;
      count++;
  }}
  </code></pre>
  
  <p>In this code, <code>count</code> always gives 0 result. I made it a global variable, not to define it in the function again.  How can I increase that variable?</p>
  
  <p>It outputs in order; that is not problem. It gives the result: </p>
  
  <pre><code>1    1 0
  -
  
  2    1 0
  -
  
  3    2 0
  </code></pre>
  
  <p>So, <code>count</code> is not increasing — but why?</p>