Question: What is the difference between a parameter and an argument?
- An argument can have many values while a parameter can have only one value.
- An argument is the variable used for input values in a method. A parameter is the specific input value passed to the method.
- A parameter is a variable in the declaration of a function. An argument is the value of this variable that gets passed to the function.
- Parameters and arguments are the same
Answer: The correct answer of the above question is Option C:A parameter is a variable in the declaration of a function. An argument is the value of this variable that gets passed to the function.