NOW, YOU ARE READY TO TAKE a look at character strings in more detail. You were first introduced to character strings in Chapter 3, “Compiling and Running Your First Program,” when you wrote your first C program. In the statement
printf ("Programming in C is fun.\n");
the argument that is passed to the
printf function is the character string
"Programming in C is fun.\n"
The double quotation marks are used to delimit the character string, which can contain any combinations of letters, numbers, or special characters, other than a double quotation mark. But as you shall see shortly, it is even possible to include a double quotation mark inside a character string.
When introduced to the data type
char, you learned that a variable ...