Example:
Suppose there is a function called sum, which has 2 arguments: n, an integer number, and x an array of numbers.
sum(n,x) computes the sum of the first n numbers x[0]+x[1]+...+x[n-1]
and the ‘result’ or ‘return value’ of sum(n,x) is the sum.
Suppose x = [5,4,3,6,7]
- sum(3,x) returns the value 12.