In the C++ Without Fear: A Beginner’s Guide That Makes You Feel Smart in Chapter (7), it mentions the following:
char str[10] = "Hello!";
This declaration creates the array shown, and associates the starting address
with str. (Remember that the name of an array always translates into its starting
address.)
What is meant by this? I mean, the association of the starting address with str?
Thanks.
It means that ‘str’ can be treated as a starting address where the “Hello” string is stored.
Consequently str + 1 is the address where the second character of the string is stored.