Also referred to as
client code, this is a part of a
computer program that makes use of another part of a computer program. Most
programming languages provide the
abstraction of a
procedure or
function, which can take
arguments, and
return a
value. An example might be
int mult(int x, int y) {return x*y;}
The calling code (somewhere else in the program) might look like
int a = 2;
int b = 3;
int prod = mult(a,b);
See also:
Procedure-oriented programming
Object-oriented programming