[Solved] Easy C++ = array length and reverse WITHOUT
Consider for (int i = 0; i < *length; i++) where both i and *length are 0, as in your case… will that loop ever execute? Nope… Consider a loop that starts with x set to 0 and return x; when str[x] is ‘\0’. i.e. the loop in strlen does this. As for printing backwards, … Read more