is there any ulternative metho to optimize the following piece of code
(for loop)
main()
{
int i,j;
for(i=0;i<40000 000;i++)
j=1;
}
just wanna know how to optimize the for loop; i know the code has no
logic.......... .
but i heard that there is a way to optimize by restructuring the aboce
code. The j=1 assignment must be kept inside the loop.
(for loop)
main()
{
int i,j;
for(i=0;i<40000 000;i++)
j=1;
}
just wanna know how to optimize the for loop; i know the code has no
logic.......... .
but i heard that there is a way to optimize by restructuring the aboce
code. The j=1 assignment must be kept inside the loop.
Comment