Declaring Strings
Sun, 10/03/2013 - 12:40amDeclaring Strings
This section teaches you how to declare and initialize strings, as well as the difference between string constants and character constants. First, let’s review the definition of a string.
What Is a String?
As introduced in Hour 12, “Storing Similar Data Items,” a string is a character array terminated by a null character (\0).
For instance, a character array, array_ch, declared in the following statement, is considered a character string:
