Deep sentence:
...in any context where it is permissible to use the value of a variable of some type, you can use a more complicated expression of that type.You may have used other languages which placed restrictions on where you could use expressions or how complicated they could be. C has relatively few such restrictions. There's nothing magical about the printf call above; this ability to perform a computation inside of an argument is not unique to printf. In any function call, the arguments in the argument list are expressions, and it doesn't matter if they are simple expressions which just fetch the value of one variable, like fahr, or more complicated expressions, like 5.0/9.0 * (fahr - 32).
Read sequentially: prev next up top
This page by Steve Summit // Copyright 1995, 1996 // mail feedback