Function definition: Difference between revisions

Content added Content deleted
No edit summary
Line 546:
 
The main features of function statement are:
1) You can use relational operators, so it's possible to "compact" an IF THEN ELSE statement but not loop statements: you must use a procedure for this.
2) Functions can have their own identifier (integer, string, real,double).
3) At least one parameter must be present, although it couldn't be used
 
4) Functions always return '''one''' value
3) At least one parameter must be present, although it couldn't be used.
 
4) Functions always return '''one''' value.
 
5) ERRE for C-64 admits only real with one parameter functions.