Help Center

Local Navigation

Optimizing subexpressions

If you use the same expression twice, use a local variable.

Code sample

int tmp = i+1; one( tmp ); two( tmp );

Index


Was this information helpful? Send us your comments.