Sunday 23 December 2012

Let us add an additional instruction to our first program:

In this case, we performed two insertions into coutin two different statements. Once again, the separation in
different lines of code has been done just to give greater readability to the program, since maincould have been
perfectly valid defined this way:

We were also free to divide the code into more lines if we considered it more convenient:
And the result would again have been exactly the same as in the previous examples.
Preprocessor directives (those that begin by #) are out of this general rule since they are not statements. They are
lines read and processed by the preprocessor and do not produce any code by themselves. Preprocessor directives
must be specified in their own line and do not have to end with a semicolon (;).


No comments:

Post a Comment