* remove "\r" nonsense
[mascara-docs.git] / C / the.ansi.c.programming.language / notes.accompany.ansi.c / sx8h.html
blobcb708858b139e251d2331fb4b33ea9fe4cc62603
1 <!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
2 <!-- This collection of hypertext pages is Copyright 1995, 1996 by Steve Summit. -->
3 <!-- This material may be freely redistributed and used -->
4 <!-- but may not be republished or sold without permission. -->
5 <html>
6 <head>
7 <link rev="owner" href="mailto:scs@eskimo.com">
8 <link rev="made" href="mailto:scs@eskimo.com">
9 <title>section 5.8: Initialization of Pointer Arrays</title>
10 <link href="sx8g.html" rev=precedes>
11 <link href="sx8i.html" rel=precedes>
12 <link href="sx8.html" rev=subdocument>
13 </head>
14 <body>
15 <H2>section 5.8: Initialization of Pointer Arrays</H2>
17 page 113
18 <p>This section is short and sweet,
19 and there are only two things I feel the need to comment on.
20 The sentence
21 ``The characters of the <TT>i</TT>-th string are placed somewhere''
22 simply refers to the fact that
23 string literals always work that way
24 (except when they're used as array initializers,
25 as explained on page 104).
26 We don't really care where the characters are,
27 as long as we can keep hold of a pointer to them.
28 </p><p>The other thing to notice is that the <TT>month_name</TT>
29 function does verify that its argument is valid.
30 If it didn't check <TT>n</TT> against the boundary values 1 and 12,
31 what would happen if we called <TT>month_name(123)</TT>?
32 </p><hr>
33 <p>
34 Read sequentially:
35 <a href="sx8g.html" rev=precedes>prev</a>
36 <a href="sx8i.html" rel=precedes>next</a>
37 <a href="sx8.html" rev=subdocument>up</a>
38 <a href="top.html">top</a>
39 </p>
40 <p>
41 This page by <a href="http://www.eskimo.com/~scs/">Steve Summit</a>
42 // <a href="copyright.html">Copyright</a> 1995, 1996
43 // <a href="mailto:scs@eskimo.com">mail feedback</a>
44 </p>
45 </body>
46 </html>