본문 바로가기

STACKOVERFLOW 1일 1질문

두 번째 질문. parameter(매개변수)와 argument(인자)의 차이가 뭔가요?

구글 이미지, parameter, argument

 

질문

 

...더보기

The general consensus seems to be that it's OK to use these terms interchangeably in a team environment. Except perhaps when you're defining the precise terminology; then you can also use "formal argument/parameter" and "actual argument/parameter" to disambiguate.

일반적인 통념으로는 이 두 용어를 섞어 써도 되는 것 같다.

하지만 당신이 정밀하게 용어를 정의한다면

당신은 일반적인 인자/매개변수 와 실제의 인자/매개변수를 분명하게 사용해야 합니다. 

 

 

답변

...더보기

1. A parameter is a variable in a method definition. When a method is called, the arguments are the data you pass into the method's parameters.

 

파라미터는 메쏘드 정의에서의 변수입니다. 메쏘드가 호출 될 때, 인자는 당신이 메쏘드 변수에 넘겨주는 데이터입니다.

 

...더보기

2. Parameter is variable in the declaration of function.

   Argument is the actual value of this variable that gets passed to function.

   

   매개변수는 함수의 선언에서의 변수이며 인자는 함수에게 전달되는 변수의 실제 값이다.

 

 

https://stackoverflow.com/questions/156767/whats-the-difference-between-an-argument-and-a-parameter

 

What's the difference between an argument and a parameter?

When verbally talking about methods, I'm never sure whether to use the word argument or parameter or something else. Either way the other people know what I mean, but what's correct, and what's the

stackoverflow.com