title: What kind of error is when you run an infinite loop accidentally
body: <p>Assumed a given code:</p>
  
  <pre><code>int n;
  
  while (n&lt;100){ n--;}
  </code></pre>
  
  <p><code>n</code> isn't initialized. Therefore, what kind of error is it when you use an un-initialized variable?</p>
  
  <p>As well, there is a chance that the loop would be infinite? In that case, is it a logical error or a run-time error?</p>
  
  <p>(Generally, if accidentally there is an infinite loop in a certain code, is It a logical error or a rum-time error?).</p>
  
  <p>Thanks a lot!</p>