* better
[mascara-docs.git] / lang / C / the.ansi.c.programming.language / notes.accompany.ansi.c / sx4c.html
blob5bd88829e33e33a6f28b9d3fc3bbee652fc9da7e
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 1.3: The For Statement</title>
10 <link href="sx4b.html" rev=precedes>
11 <link href="sx4d.html" rel=precedes>
12 <link href="sx4.html" rev=subdocument>
13 </head>
14 <body>
15 <H2>section 1.3: The For Statement</H2>
17 pages 13-14
18 <p>Deep sentence:
19 <blockquote>...in any context where it is
20 permissible to use the value of a variable of some type,
21 you can use a more complicated expression of that type.
22 </blockquote>You may have used other languages which placed restrictions on
23 where you could use expressions or how complicated they could be.
24 C has relatively few such restrictions.
25 There's nothing magical about the <TT>printf</TT> call above;
26 this ability to perform a computation inside of an argument is
27 not unique to <TT>printf</TT>.
28 In any function call,
29 the arguments in the argument list are expressions,
30 and it doesn't matter if they are simple expressions which just
31 fetch the value of one variable, like <TT>fahr</TT>, or more
32 complicated expressions, like <TT>5.0/9.0 * (fahr - 32)</TT>.
33 </p><hr>
34 <p>
35 Read sequentially:
36 <a href="sx4b.html" rev=precedes>prev</a>
37 <a href="sx4d.html" rel=precedes>next</a>
38 <a href="sx4.html" rev=subdocument>up</a>
39 <a href="top.html">top</a>
40 </p>
41 <p>
42 This page by <a href="http://www.eskimo.com/~scs/">Steve Summit</a>
43 // <a href="copyright.html">Copyright</a> 1995, 1996
44 // <a href="mailto:scs@eskimo.com">mail feedback</a>
45 </p>
46 </body>
47 </html>