title: OpenMP - Variable declarations in for loops
body: <p>I'm trying to adapt a normal code to a parallel one. When I make a for loop parallel, which has some variables declared inside of it, are those variables private or shared?</p>
  
  <p>Should I define each of them as private when I define the pragma?</p>
  
  <hr>
  
  <p>By the way, one last question. I can use for-pragma with an initial parameter of an iterator too right? like <code>for(iter=xlist.begin() ; ... )</code></p>
  
  <p>I use latest version of codeblocks and mingw. </p>