Call site

From Wikipedia, the free encyclopedia

In programming, a call site of a function is a line in the code which calls (or may call, through dynamic dispatch) a function. A call site passes zero or more arguments to the function, and receives zero or more return values.

[edit] Example

// this is a function definition
function sqr(x)
{
  return x * x;
}
// these are two call sites of the function
a = sqr(b);
c = sqr(b); 

[edit] See also