aeiou24680
具体区别如下:
1、释义不同。parameter是指决定因素;规范;范围,argument是指争论;争吵;争辩;辩论;论据;理由;论点。
2、 参数指向不同。parameter是指函数定义中参数,而argument指的是函数调用时的实际参数。
3、对应中文术语不同。parameter=形参(formal parameter), argument=实参(actual parameter)。
4、用法不同。在不很严格的情况下,现在二者可以混用,一般用argument,而parameter则比较少用。
5、在方法选择上不同。例如:
While defining method, variables passed in the method are called parameters.
当定义方法时,传递到方法中的变量称为参数。
While using those methods, values passed to those variables are called arguments.
当调用方法时,传给变量的值称为引数。(有时argument被翻译为“引数“)
柳絮天涯
C++有一个字符函数库cctype可以实现这个功能,使用时包含头文件#
星愿乐活
parameter和argument是计算机英语中常见的词汇,这两者的区别如下:
argument是实参,体现在主调函数中,当进入被调函数后,实参变量也不能使用
2、parameter只有在被调用时才分配内存单元,在调用结束时,即刻释放所分配的内存单元。函数调用结束返回主调用函数后则不能再使用该形参变量。因此,形参只在函数内部有效。
argument可以是变量、常量、函数、表达式等,无论实参是何种类型的量,在进行函数调用 时,它们都必须有确定的值,以便把这些值传送给形参。因此应预先用赋值,输入等办法使参数 获得确定值。
扩展资料:
当parameter和argument不是指针类型时,在该函数运行时,形参和实参是不同的变量,他们在内存中位于不同的位置,形参将实参的内容复制一份,在该函数运行结束的时候形参被释放,而实参内容不会改变。
举例:
1. 比如你定义一个函数void add(int a, int b),这里的a和b就是parameter。
2. 当你进行函数调用的时候,add(1, 2),这里的1和2就是argument。
参考资料来源:百度百科-argument
室内设计--阿梅
根据网上一些资料,对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被翻译为“引数“)。
暮光绝恋
1、parameter是指函数定义中参数,而argument指的是函数调用时的实际参数。
2、函数声明的变量时候叫Parameter, 函数调用的变量时候叫Argument。
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.当调用方法时,传给变量的值称为引数。