title: How can I initialize an array globally in C or C++?
body: <p>I'm trying to do this:</p>
  
  <pre><code>for(int k=0; k&lt;context.size(); k++)
  {
     cc_no_issue[k]=0;
  }
  </code></pre>
  
  <p>Can someone tell me how I can do that globally? Whenever I try I get these errors:</p>
  
  <blockquote>
    <p>expected unqualified-id before "for"<br>
    k does not define a type<br>
    k does not define a type</p>
  </blockquote>