title: C++ Function Return with && Operator
body: <p>I'm looking through a library, and I see this function:</p>
  
  <pre><code>bool CCAPI::IsConnected() const
  {
      int state;
      int res = CCAPIGetConnectionStatus(&amp;state);
      return (res == CCAPI_OK) &amp;&amp; state;
  }
  </code></pre>
  
  <p>Specifically, what does this last line mean? It looks to me like it's returning two variables as it's using the <code>&amp;&amp;</code> operator. So what's going on here?</p>