cout<<3+3%3<<endl;//3
cout<<3*1%3<<endl;//0
cout<<3%3*3<<endl;//0
cout<<3%3+3<<endl;//3

Today this cost me 2 hrs to find a bracket that caused a bug.

Advertisements