Информация об изменениях

Сообщение Re: Параметр и аргумент от 29.08.2014 13:58

Изменено 29.08.2014 14:02 Qodomoc

Цитата из спецификации C++:
[q]
1.3.1 argument
an expression in the comma-separated list bounded by the parentheses in a function call expression, a
sequence of preprocessing tokens in the comma-separated list bounded by the parentheses in a function-like
macro invocation, the operand of throw, or an expression, type-id or template-name in the commaseparated
list bounded by the angle brackets in a template instantiation. Also known as an actual argument
or actual parameter.

1.3.9 parameter
an object or reference declared as part of a function declaration or definition, or in the catch clause of an
exception handler, that acquires a value on entry to the function or handler; an identifier from the commaseparated
list bounded by the parentheses immediately following the macro name in a function-like macro
definition; or a template-parameter. Parameters are also known as formal arguments or formal parameters.
[q]

То есть аргумент — это то, что указывается при вызове функции (может называться актуальным (фактическим) параметром или аргументом).
Параметр — часть объявления или определения функции (может называться формальным параметром или аргументом).
Re: Параметр и аргумент
Цитата из спецификации C++:

1.3.1 argument
an expression in the comma-separated list bounded by the parentheses in a function call expression, a
sequence of preprocessing tokens in the comma-separated list bounded by the parentheses in a function-like
macro invocation, the operand of throw, or an expression, type-id or template-name in the commaseparated
list bounded by the angle brackets in a template instantiation. Also known as an actual argument
or actual parameter.

1.3.9 parameter
an object or reference declared as part of a function declaration or definition, or in the catch clause of an
exception handler, that acquires a value on entry to the function or handler; an identifier from the commaseparated
list bounded by the parentheses immediately following the macro name in a function-like macro
definition; or a template-parameter. Parameters are also known as formal arguments or formal parameters.


То есть аргумент — это то, что указывается при вызове функции (может называться актуальным (фактическим) параметром или аргументом).
Параметр — часть объявления или определения функции (может называться формальным параметром или аргументом).