i have just started c++ programming.i get the following code in my CS exam.i just want to know how this code is working because i thought if statement is used to check condition.
`int a=0,b=0;
if(a++&&b++)
cout<<"A="<<a<<"\nB="<<b;
else
cout<<"B="<<b<<"\nA="<<a;`