C++ boolalpha confusion : <p>Hi anyone can explain the following c++ code result?</p>

<pre><code>input: true false 1
output: false, true, true,

#include &lt;iostream&gt;
using namespace std;
int main ()
{
    bool c1, c2, c3;
    cin &gt;&gt; c1 &gt;&gt; c2 &gt;&gt; c3;
    cout &lt;&lt; boolalpha &lt;&lt; c1 &lt;&lt; ", " &lt;&lt; c2 &lt;&lt; ", " &lt;&lt; c3 &lt;&lt; ", " &lt;&lt; endl;//LINE I
    return 0;
}
</code></pre>
