title: Query over initialisation of global variables
body: <p>Not able to figure out why this code gives error.</p>
  
  <pre><code>#include&lt;iostream&gt;
  #include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  using namespace std;
  unsigned long long A[102];
  A[0]=2;
  int main()
  {
      cout&lt;&lt;"OK";
  }
  </code></pre>
  
  <p>Error while compiling:</p>
  
  <pre><code>prog.cpp:6:1: error: ‘A’ does not name a type
  </code></pre>
  
  <p>But this works fine.</p>
  
  <pre><code>#include&lt;iostream&gt;
  #include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  using namespace std;
  unsigned long long A[102];
  int main()
  {
      A[0]=2;
      cout&lt;&lt;"OK";
  }
  </code></pre>
  
  <p>What could be the reason ?</p>