H
haroon
Hi,
I have two versions of a loop. I want to know which one is more
efficient. and is there any way to make it even more efficient?
1- for (i = 0; str[i++] != '\0' ;
2- for (i = 0; str[] != '\0'; ++i) ;
I have two versions of a loop. I want to know which one is more
efficient. and is there any way to make it even more efficient?
1- for (i = 0; str[i++] != '\0' ;
2- for (i = 0; str[] != '\0'; ++i) ;