"Parametr" vs "Argument" [duplikat]
Możliwy duplikat:
argumenty czy parametry?
Dostałem Parametr i argument trochę się pomieszały i nie zwracałem uwagi na to, kiedy używać jednego, a kiedy drugiego.
Możesz mi powiedzieć? 491
1 answers
Parametr jest zmienną, która jest częścią podpisu metody (deklaracji metody). Argument jest wyrażeniem używanym podczas wywołania metody.
Rozważ następujący kod:
void Foo(int i, float f)
{
// Do things
}
void Bar()
{
int anInt = 1;
Foo(anInt, 2.0);
}
Tutaj i
i f
są parametrami, a anInt
i 2.0
są argumentami.
865
Author: tranmq,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2014-02-11 21:45:33
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2014-02-11 21:45:33