C/C++ Performance Tips 1/2
Use ANSI standard library functions
Use abbreviated assignment operators c+=3
Don’t place expressions in loops where values don’t change (I.e. c=1)
&& - leftmost condition should be most likely to be false
|| - rightmost condition should be truest
Choose the right optimizing option
Recursive calls use extra memory and take more time