题目
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;
}
提问时间:2021-02-05
答案
所以我说问错地儿了
建议你丢到编程板块去
建议你丢到编程板块去
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
最新试题
- 1一道初二英语补全句子题
- 2力的正交分解例题(要格式)
- 3The person we talked about ____our school last week.中缺谓语动词 但talk 就是动词 为什么不能做谓?
- 4分数乘整数的意义是什么
- 5英语67.The weather here is pleasant ,______ the season is.
- 6求一篇关于 addiction 的英语口语的短对话(要三人对话形式的)
- 7make a menu --- ---the week and give reason ---your menu填介词
- 8杨辉三角形规律
- 9在空间四边形ABCD的边AB、BC、CD、DA上分别取E、F、G、H四点,如果EF与HG交于点M,那么( ) A.M一定在直线AC上 B.M一定在直线BD上 C.M可能在直线AC上,也可能在直线BD
- 10加工一批零件,先加工180个,其中5个不合格,后来又加工了20个,全部合格,求合格率.
热门考点
- 1雷抒雁《那一片消失了的苇塘》中,作者认为雎鸠是什么鸟
- 2经过抛物线焦点直线L与抛物线相交于点A.B向此抛物先的准线作垂线,吹足分别问点M.N 且O为原点,角MON 为多少?
- 3某元素最高价氧化物的水化物的化学式为HxROy,气态氢化物的化学式为HxR,已知1mol的HxROy比1mol的HxR质量多出64g,又知道1mol的HxROy中R的原子核外电子总数比氢原子和氧原子核
- 4一个数加上15的和与5相乘,所得的积减去100,差是30,求这个数
- 5He saw the police cars(?)around the corner.
- 6翻译词组.sometimes watches TV for half an hour
- 7函数y=根号下(12-2x)+根号下(x-1)的最大值
- 8已知二次函数f(x)满足f(x+1)-f(x)=2x 且f(0)=1
- 9设x²-x=-1,则3x^4-5x³+8x²-5x+1等于?
- 10slacked lime怎么翻译?