Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Function declarations specify a list of parameters, or formal arguments. At the call site, the source code location where the function is invoked, a name of the function to call is followed by a parenthesized list of corresponding actual arguments. The types passed to a function must match the formal list of arguments types declared at the function.
int myFunc( int j ) // 'j' is a formal argument
{
return j + 10;
}
…
myInt = myFunc(5); // the literal '5' is an actual argument
packetC parameters can be passed in two modes: