Please note here that there is no punctuation after the function header.
NOTE
If there are no parentheses following the main, it is not a function but is instead a
variable. For example, sum is a variable but sum( ) is a function. This function may or
may not return a value. We shall study this a bit later.
After identifying the main( ) to the system, we must now specify what this routine must do. And
this is done by enclosing all program statements of the routine within a pair of curly braces (line 3).
Also note that all program statements included between the braces are taken as part of the
Do'stlaringiz bilan baham: |