AFAIK 'arguments' is the same as 'actual parameters' so I''l be using that in my story
Formal parameters are the parameters you define in your function prototype or definition.
Actual parameters are the parameters you supply to the function.
For instance:
void someFunction(int a); //'a' is a formal parameter
void main()
{
int a = 1;
someFunction(a); //'a' is a actual parameter
}
When an actual parameter is of a lower type (eg the formal parameter is a long and the actual parameter an int) it will be automatically converted.
The other way around requires you to typecast
[Updated on: Sat, 26 March 2011 17:34]
Report message to a moderator