What is the diffrence between parametrs and argument ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 18

What is the diffrence between parametrs and argument ?

please explain with an example code if u can

4th Apr 2018, 6:17 AM
Vijay(v-staršŸŒŸ)
Vijay(v-staršŸŒŸ) - avatar
2 Answers
+ 16
(from Quora:) "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.Ā ParameterĀ is a variable in the declaration of function.Ā ArgumentĀ is the actual value of this variable that gets passed to function."
4th Apr 2018, 7:45 AM
David Ashton
David Ashton - avatar
+ 11
thank u verymuch both of u ā˜ŗ
4th Apr 2018, 11:38 AM
Vijay(v-staršŸŒŸ)
Vijay(v-staršŸŒŸ) - avatar