I am not able to understand auto keyword, begin(), end() and char* i.e, pointer.
String class->iterators
-
auto decides the data type of the variable according to the data type returned to it.
i.e auto myVar = myFunc(), so here myVar will be int if myFunc() returns int, char if myFunc() return char etc. (more) - begin() is the pointer to the first character of string. (more)
- end() is the pointer to the next of last character of string. (more)
- char*is a pointer which points to a character. (more)