This section is short and sweet, and there are only two things I feel the need to comment on. The sentence ``The characters of the i-th string are placed somewhere'' simply refers to the fact that string literals always work that way (except when they're used as array initializers, as explained on page 104). We don't really care where the characters are, as long as we can keep hold of a pointer to them.
The other thing to notice is that the month_name function does verify that its argument is valid. If it didn't check n against the boundary values 1 and 12, what would happen if we called month_name(123)?
Read sequentially: prev next up top
This page by Steve Summit // Copyright 1995, 1996 // mail feedback