We can declare a string in several ways. The first way is to declare a character array with a specified size, as follows:
This creates an array of 8 elements, capable of holding seven characters (don't forget the terminating NUL character).
The next way to declare a string is similar to the first method but instead, we don't specify the size of the array, as follows:
This method is not useful unless we initialize anotherString, which we will see in the next section. If you recall from Chapter 14, Understand Arrays and Pointers, this declaration looks like a pointer in the form of an array declaration. In fact, without initialization, it is.
The last way to declare a string is to declare a pointer to char, as follows:
char * pString;
Again, this method not useful until pString is either initialized or actually points a string literal or string array...