newline character
.
This
newline character
tells the system to do precisely what its
name implies—that is, go to a new line (next line).
NOTE
Any characters to be printed after the newline character then appear on the next line of
the display. This concept of newline character is similar to that of the carriage return
key on a typewriter.
Another
rule
in C may be stated as follows:
“All program statements in C must be terminated
by a semicolon. That is why a semicolon appears immediately after the closing braces of the
printf( ) statement. However, there are some exceptions; for example, after main( ) there are
no semicolons!”
Line 5 is the last statement (return 0); it tells the compiler to finish the execution of main and return
to the system a status value of 0.
Do'stlaringiz bilan baham: |