+ 1
Are the terms 'argument' and parameter as interchangeable as 'method' and 'function'?
I'm not sure if SoloLearn is using them interchangeably to show me they are the same thing, or if one is only in the function being called and the other is in the calling function. thanks in advance
2 Antworten
+ 3
Umm, often I use them interchangeably, but that isn't how it really works. Parameters is what you're setting up on the method to accept arguments. Argument is the actual values that's being sent to the method to satisfy its parameters.
That make sense?
+ 1
@netkos that makes perfect sense. so they are spoken of interchangeably, but at the end of the day, the parameter would be in the x in the method definition, /* static int pow (int x) */ and the arguments would be the 6 in the calling function /*console.writeline (pow (6))*/
alrighty, thank you.