title: OpenMP: are local variables automatically private?
body: <pre><code>#pragma omp parallel
  {
      int x; // private to each thread ?
  }
  
  #pragma omp parallel for
  for (int i = 0; i &lt; 1000; ++i)
  {
      int x; // private to each thread ?
  }
  </code></pre>
  
  <p>Thank you!</p>
  
  <p>P.S. If local variables are automatically private, what is the point of using <em>private</em> clause?</p>