what is the difference between parameter and argument in computer science?
题目
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;
}
答案
所以我说问错地儿了
建议你丢到编程板块去
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
最新试题
热门考点
- 雷抒雁《那一片消失了的苇塘》中,作者认为雎鸠是什么鸟
- 经过抛物线焦点直线L与抛物线相交于点A.B向此抛物先的准线作垂线,吹足分别问点M.N 且O为原点,角MON 为多少?
- 某元素最高价氧化物的水化物的化学式为HxROy,气态氢化物的化学式为HxR,已知1mol的HxROy比1mol的HxR质量多出64g,又知道1mol的HxROy中R的原子核外电子总数比氢原子和氧原子核
- 一个数加上15的和与5相乘,所得的积减去100,差是30,求这个数
- He saw the police cars(?)around the corner.
- 翻译词组.sometimes watches TV for half an hour
- 函数y=根号下(12-2x)+根号下(x-1)的最大值
- 已知二次函数f(x)满足f(x+1)-f(x)=2x 且f(0)=1
- 设x²-x=-1,则3x^4-5x³+8x²-5x+1等于?
- slacked lime怎么翻译?