title: About while(n) having no logical operator in c++
body: <p>What does <code>while(n)</code> (<code>n</code> is an initialized integer) actually do in c++? </p>
  
  <p>From the documentation:</p>
  
  <blockquote>
    <p>The while-loop simply repeats statement while expression is true.</p>
  </blockquote>
  
  <p>But there's no logical operator in <code>while(n)</code> so suppose the loops run in a way that get n to zero, does that make it false? so does that means that writing <code>while(n)</code> is equivalent to <code>while(n!=0)</code>?</p>