what is the difference between parameter and argument in com
来源:学生作业帮 编辑:搜狗做题网作业帮 分类:综合作业 时间:2024/04/29 09:28:58
what is the difference between parameter and argument in computer science?
The term parameter refers to any declaration within the parentheses following the function name in a function declaration or definition; the term argument refers to any expression within the parentheses of a function call.
1.parameter used in procedure defination
2.arguments used in procedure call
This example demonstrates the difference between a parameter and an argument:
void foo(int a,char b); //a and b are parameters,
here procedure is define
int main()
{
foo(5,'a'); //5 and 'a' are arguments,
here procedure is called
return 0;
}
The term parameter refers to any declaration within the parentheses following the function name in a function declaration or definition; the term argument refers to any expression within the parentheses of a function call.
1.parameter used in procedure defination
2.arguments used in procedure call
This example demonstrates the difference between a parameter and an argument:
void foo(int a,char b); //a and b are parameters,
here procedure is define
int main()
{
foo(5,'a'); //5 and 'a' are arguments,
here procedure is called
return 0;
}
所以我说问错地儿了
建议你丢到编程板块去
建议你丢到编程板块去
what is the difference between parameter and argument in com
What is the difference between "INCOME" and "REVENUE" in acc
What is the difference between "Input" and "Import" in Engli
what is the difference between stems and tokens in searching
what is the difference between "
What is the difference between a and the
What is the difference between the terms “entity” and “equit
what is the difference between the infinitive marker to and
what is the difference between the words happy and funny?
帮忙短语辨析what is the exact difference between "in future" and "
what is the difference between stakeholder and shareholder?
what is the difference between deity and God