Learn to Program with ZedLX

Free Online Programming Course for Beginners

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. Just like any other expression, it can be used as a part of a more complex expression.

Loading...