Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

It might be like this: Parameter means from the callers POV and arguments mean inside the procedure, or other way round.

Or is there no difference?

Update

In Swedish we say "anropsparametrar" i.e. "parameters that are calling the procedure" and we would not say "anropsargument" ("arguments that are calling the procedure").

share|improve this question
1  
it will depend on context, that you refer –  Yusubov Oct 12 '12 at 0:11
    
Please search next time: stackoverflow.com/questions/3176310/… –  Overv Oct 12 '12 at 6:22
add comment

1 Answer

up vote 14 down vote accepted

According to MSDN article there are some definition differences what is called parameter and what is called argument:

Parameter:

A parameter represents a value that the procedure expects you to pass when you call it. The procedure's declaration defines its parameters.

Argument:

An argument represents the value you pass to a procedure parameter when you call the procedure. The calling code supplies the arguments when it calls the procedure.

There is also a great quote how to understand it in real-life example:

To communicate this information to the procedure, the procedure defines a parameter, and the calling code passes an argument to that parameter. You can think of the parameter as a parking place and the argument as an automobile. Just as different automobiles can park in the parking place at different times, the calling code can pass a different argument to the same parameter each time it calls the procedure.

share|improve this answer
4  
The C# language specification agrees with this. For example, section "1.6.6.1 Parameters" states that "The parameters of a method get their actual values from the arguments that are specified when the method is invoked." –  akton Oct 12 '12 at 0:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.