While coding, I was just curious if there is a difference in terms of performace between two codes.
for(int i=0;i<10;i++){
if(i>-1)
printf("Bigger! than -1");
if(i>5)
printf("Bigger! than 5");
}
vs
for(int i=0;i<10;i++)
if(i>-1)
printf("Bigger! than -1");
for(int i=0;i<10;i++)
if(i>5)
printf("Bigger! than 5");
Is there any performance difference and if there is, what are the factors that make those difference?