Hey guys, I am very new to C++ and I have a question about arrays and pointers when it comes to determining string length. This is what it's asking:
Write two versions of each of the following functions. The first version (1) should use array subscripting. The second version (2) should use pointers and pointer arithmetic. Place the functions in the same file as main and following the main function:
int stringLength(const char* s);
Determines the length of string s. The number of characters preceding the terminating null character is returned.
This is what I've gotten for the first part of the problem, but I don't understand what it means for the second part "should use pointers and pointer arithmetic."