Could someone explain to me the difference between an argument and a parameter? What is passed through and what is used in the function?
Asked
Active
Viewed 1,673 times
0
-
Thanks for asking a question on SO! Before you ask a new question, be sure to search Stack Overflow in case someone already had the same Q! If you still can't find your answer, feel free to ask a new question. Check out this previously answered question: http://stackoverflow.com/questions/1788923/parameter-vs-argument – dsrees Oct 14 '13 at 02:56
-
This is not a duplicate question, because these concepts are being asked specifically for C++. The terminology for parameters and arguments are specified by the international standard, and they mean different things based on different language constructs. They correlate to the C++ grammar and they make up function decelerations, definitions, call expressions, macros, templates, and catch clauses. – Trevor Hickey Apr 29 '16 at 01:35
1 Answers
1
You can just remember it in this simple way:
Parameter: used in definition. Argument: used when you invoke the function.

Heartwork
- 41
- 3