( a == 0 ? a : b ) = 1; replaces

if( a == 0 )

a = 1;

else

b = 1;

Advertisements