|
A parameter variables is actually a local variable defined at the start of the method/function, but it is initialized by the method/function invocation
int x; // Global variable: defined outside function
int main(int argc, char *argv[] /* Parameter variables */)
{
int y; // Local variable: defined inside a function
...
}
double func(int x /* Parameter variables */)
{
int z; // Local variable: defined inside a function
...
}
|