I ran into a situation like this:
if(true,false)
{
    cout<<"A";
}
else
{
    cout<<"B";
}
Actually it writes out B. How does this statement works? Accordint to my observation always the last value counts. But then what is the point of this?
Thanks
 
     
     
    