calling code

created by Mr. Neutron
(idea) by Mr. Neutron (8.9 mon) (print)   (I like it!) Sun Dec 17 2000 at 6:53:20
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

Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.