Name: Dinga 2010-09-12 3:50
for(j=1;j<5;++j)
fprintf(stdout,"%d\n",j*3);Addition is cheaper than multiplication, so the compiler can convert this fragment to the one bellow.
int s = 0;
for(j=1;j<5;++j)
{
s += 3
fprintf(stdout,"%d\n",s);
}A temporary variable has been introduced in order to eliminate the multiplications.