`
你是救世主
  • 浏览: 121193 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

parameter 和 argument 的区别

 
阅读更多
parameter 中文多翻译为形参,在函数声明的时候定义的,比如:
int abc(int d,int e);//此时d和e 就是parameter

argument就是实参,是在调用这个函数时传递给函数的相匹配的参数。比如:
int h=abc(23,32);//23和32就是argument
分享到:
评论
2 楼 你是救世主 2010-12-17  
我也是从别的地方看到的,觉得有助于自己的理解。
其实两个应该没有很大的区别吧。
只是从另外一个角度理解一下。
1 楼 kongzhu2011 2010-11-19  
请看
public static void main(String[] args) {

}

标准的main方法中,启动参数是args,这个是形参吧。。。和你说的矛盾啊

相关推荐

    c99-variable-length-array.rar_ARGUMENT!

    Cannot use any variably-modified type with a template parameter or argument.

    c++ std::invalid_argument应用

    想研究std::invalid_argument的朋友可以参考下

    Argument:例如,参数验证方法

    概述该项目包括一个单独的类Argument ,可用于参数验证/保护方法。 您可以从以下获取NuGet软件包: : 。例子public MyService(OtherService other) { _other = Argument.NotNull("other", other);}特征ReSharper批注...

    guc.c.tar.gz_ARGUMENT!_GUC

    parameter in postgresql.conf (and then restart the server), or you can specify it as a command - line argument to pg_ctl when you restart the server. The following demonstrates this for the 64 buffer ...

    c常见出错信息c常见出错信息c常见出错信息

    ''xxx'' not an argument :xxx不是参数 ''xxx'' not part of structure :xxx不是结构体的一部分 xxx statement missing ( :xxx语句缺少左括号 xxx statement missing ) :xxx语句缺少右括号 xxx statement ...

    unidac64src 6.4.15

    Bug with raising 'Argument out of range' error on TCRDBGrid creating in RAD Studio Berlin with Update 1 is fixed Bug with QueryRecCount when ORDER clause contains CASE..END is fixed Bug with ...

    函数实参(Argument)与形参(Parameters)的区别及应用(默认值与实参可选) | Python

    形参(parameter):在函数greet_user()的定义中,变量username是一个形参——函数完成其工作所需的一项信息。 实参(argument):在代码greet_user('jesse')中,值'jesse'是一个实参——调用函数时传递给函数的信息...

    Python函数参数操作详解

    本文实例讲述了Python函数参数操作。分享给大家供大家参考,具体如下: 简述 ...不止 Python,几乎所有的编程语言都会涉及两个术语:parameter 和 argument。那么,它们之间究竟有什么区别呢? para

    DB2 Access Classes

    CSqlParameter Represents a parameter or argument associated with a SQL statement or stored procedure CSqlField Represents a column of data in a recordset CSqlLocator Manipulates a locator to access ...

    linux驱动学习去开发入门

    hello_param: `4' invalid for parameter `TNparam' insmod: cannot insert 'hello-param.ko': Invalid parameters (-1): Invalid argument [Tekkaman2440@SBC2440V4]# 我这个实验除了对参数的改变进行实验外,我...

    urc:统一资源创建者。 一个类,可帮助用户创建RESTful API的URL

    .addParameter("firstArgument", "first") .addParameter("second", 2) .addParameter("noListed", "hello") .build(); 产生的网址将是: https://my-api.com/v1/first/try/2?noListed=hello : https:/

    统计学JASA文章-The Analysis of Transformed Data.pdf

    Our argument is based on considerations of parameter interpretation and subsequent Bayesian analysis, within the context of fitting normal-error linear models. Numerical examples are used to ...

    2009 达内Unix学习笔记

    命令和参数之间必需用空格隔开,参数和参数之间也必需用空格隔开。 一行不能超过256个字符;大小写有区分。 二、特殊字符含义 文件名以“.”开头的都是隐藏文件/目录,只需在文件/目录名前加“.”就可隐藏它。...

    delphi编译错误.txt

    Bad argument type in variable type array constructor 在变量类型数组结构中不正确的参数类型 Bad file format ''''<name>'''' 错误的文件格式 Bad file format: <Filename> 错误的文件格式 Bad global symbol ...

    Python基础教程:函数参数和注解.pdf

    Python基础教程:函数参数和注解 四种参数 Python函数func定义如下: def func(first, *args, second="Hello World", **kwargs): print(first) print(args) print(second) print(kwargs) func("lisi", "san", py=...

    数位板压力测试

    sdk LCS/Telegraphics Wintab* Interface Specification 1.1: 16- and 32-bit API Reference By Rick Poyner Revised February 11, 2012 This specification was developed in response to a perceived need for a...

    最优化学习的Matlab程序:黄金分割法(gold section method)

    最优化学习的Matlab程序:黄金分割法(gold section method) %GSM finds a local minimum of a function using gold section method... % define parameter first % [x_min,fx_min,ITER]=gsm(@(x) myfun(x,c),-2*pi,0)

    计算机专业词汇.txt

    argument引数(传给函式的值)。参见parameter array 数组 arrow operator 箭头操作符 ASP(Active Server Page)活动服务器页面 ASP.NET worker process ASP.NET工作者进程 assembly 装配件、配件 assembly language ...

    Linux常用命令.docx

    在撰写本文时,Linux在台式机上的全球市场份额为2.68%,但超过90%的云基础设施和托管服务都在该操作...argument或parameter是我们给命令的输入,以便它可以正常运行。在大多数情况下,参数是一个文件路径,但它可以是

Global site tag (gtag.js) - Google Analytics