So the question is -
Or our "MODERN & SMART" compliers will automatically make strlen() inline as it is inside loop?Code://will this code runs slower- for (int i = 0; i < strlen(str); i++) {......} //compare to this- int length = strlen(str); for (int i = 0; i < length; i++) {.......}
I think this is the case with c++ compilers,isnt it ?