title: Why the C++ global variable not affect to memory usage of program
body: <p>In my program I declare an initialized global variable (as an array).
  But it only affects the size of executable file, the memory usage by the program was not affected.</p>
  
  <p>My program is like that</p>
  
  <pre><code>char arr[1014*1024*100] = {1};
  
  int _tmain(int argc, _TCHAR* argv[])
  {
      while (true)
      {
  
      }
      return 0;
  }
  </code></pre>
  
  <p>Size of executable file is 118MB but memory usage when running program was only 0.3MB</p>
  
  <p>Can anyone explain for me?</p>