parameter和argument的区别
答案:2 悬赏:0
解决时间 2021-12-21 09:53
- 提问者网友:白柏唇蜜
- 2021-12-21 00:03
parameter和argument的区别
最佳答案
- 二级知识专家网友:孤伤未赏
- 2021-12-21 01:27
Parameter is variable in the declaration of function.
Argument is the actual value of this variable that gets passed to function.
函数声明的变量时候叫Parameter
函数调用的变量时候叫Argument
希望采纳哦!
Argument is the actual value of this variable that gets passed to function.
函数声明的变量时候叫Parameter
函数调用的变量时候叫Argument
希望采纳哦!
全部回答
- 1楼网友:随心随缘不随便
- 2021-12-21 02:46
根据网上一些资料,对parameter和argument的区别,做如下的简单说明。
1. parameter是指函数定义中参数,而argument指的是函数调用时的实际参数。
2. 简略描述为:parameter=形参(formal parameter), argument=实参(actual parameter)。
3. 在不很严格的情况下,现在二者可以混用,一般用argument,而parameter则比较少用。
while defining method, variables passed in the method are called parameters.
当定义方法时,传递到方法中的变量称为参数.
while using those methods, values passed to those variables are called arguments.
当调用方法时,传给变量的值称为引数.(有时argument被翻译为“引数“)
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯