title: where to assign value for global variable, initialization or in the function
body: <p>I have two functions.  Which one is better and why? I want to run the program in embedded system.</p>
  
  <p>1.</p>
  
  <pre><code>int Flag = 1;
  void main(void) {
      /* main body goes here */
  }
  </code></pre>
  
  <p>2.</p>
  
  <pre><code>int Flag;
  void main(void) {
      Flag = 1;
      /* main body goes here */
  }
  </code></pre>