2.3 Introduction to function parameters and arguments

주홍영·2022년 3월 11일
0

Learncpp.com

목록 보기
27/199

https://www.learncpp.com/cpp-tutorial/introduction-to-function-parameters-and-arguments/

parameter와 argument의 정의에 대해서 제대로 짚고 넘어가자

A function parameter is a variable used in a function. Function parameters work almost identically to variables defined inside the function, but with one difference: they are always initialized with a value provided by the caller of the function.

function parameter는 함수에서 사용되는 caller 로부터 전달받는 variable
즉, 함수 내부의 변수들, 외부에서 값을 받아서 사용되는

An argument is a value that is passed from the caller to the function when a function call is made:

argument는 caller로부터 전달 받는 value

단어장

fragment : 조각, 파편

profile
청룡동거주민

0개의 댓글