Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Functions [3/9]

This example program defines a function Mul. The function Mul has two parameters, named a and b, both of type num.

In the first call of function Mul, the value 4 of the first argument gets assigned to parameter a, and the value 3 of the second argument gets assigned to parameter b.

A function call is a primary expression, therefore it can be used as a part of a more complex expression.

Loading...