Function Calls

Function calls are written with parentheses around the arguments, following the function name; commas separate arguments.

Scheme: (sqrt x)
Pascal: sqrt(x)
C++: sqrt(x)
Java: Math.sqrt(x)

A function with no arguments has empty parentheses in C++ and Java, but none in Pascal.

Scheme: (newline)
Pascal: writeln
Java: System.out.println()

Contents    Page-10    Prev    Next    Page+10    Index