title: Best Practice when Declaring and Initializing variables in c++
body: <p>As I am just starting with c++, I am trying to keep my code clean, readable and correct. </p>
  
  <p>I have a question as to what is the best practice when declaring and initializing variables. </p>
  
  <p>In Programming principles and practice in c++ by Bjarne Stroustrup, he advised to always initialize your variables if you can. That I understand. </p>
  
  <p>What wasn't mentioned was the correctness of declaring variables in a single line statement like this: </p>
  
  <pre><code>  int value1 = 0, value2 = 0, value3 = 0; 
  </code></pre>
  
  <p>as against using three different statements like this: </p>
  
  <pre><code>  int value1 = 0; 
  
    int value2 = 0;
  
    int value3 = 0; 
  </code></pre>
  
  <p>Of course the second way is more readable and probably manageable, but the first is kind of a quick way, which I suppose is not advised? 
  Which is best practice and why? Does it affect compilation in any way? </p>
  
  <p>Thanks. </p>