Let's give them the benefit of the doubt, and consider that they meant that:
for (int i = 0; i < strlen(str); i++) { ... }
could be grepped and easily discerned from: for (int i = 0; i < str_length; i++) { ... }
and generally, that every looping point could be easily identified.After all, if you call functions inside the body, all bets are off as to what complexity the loop means anyway...
Like how
is O(n)?