please some body tell me which among these for loops is faster???
1)for(i = 0; i < 100; i++)
for(j = 0; i < 100; j++)
printf("first instance of for loop");
2) for(i = 0; i < 100; i++)
for(j = 0; j < 100; j++)
printf("second instance of for loop");
In the second for loop of first for loop instance the condition statement has variable 'i'.
So according to my knowledge of c first for loop istance is a infinite for loop. So second for loop instance execution is faster. If i am wrong please correct me and give the reason why my answer is wrong???