+ 6

What is the difference between arguments and parameters?

We all use these two terms interchangeablly in our daily lives. Now it is the time to know if they are actually same or different. If different then how or if same then Why?

12th Oct 2018, 7:52 PM
Mr. Bot
Mr. Bot - avatar
12 ответов
+ 28
You define parameters when you first declare the function. You pass arguments when you call the function. Arguments are the actual data you pass into the function. Parameters works like variables.
12th Oct 2018, 8:16 PM
Toni Isotalo
Toni Isotalo - avatar
+ 5
param can only work in function. they're like anonymous variable just created for defining function. just same as lambdas.
12th Oct 2018, 9:03 PM
Roneel
Roneel - avatar
12th Oct 2018, 9:53 PM
Femi
Femi - avatar
+ 5
parameter is a variable in a method of definition.it is called formal parameters.besides arguments is a actual value of this variable that gets passed to the function.it is called actual parameter.. i hope its help you
13th Oct 2018, 5:14 AM
Pragati Awasthi
Pragati  Awasthi - avatar
+ 3
to pass an argument to a function ,it would call the function and will assign the value to the parameter here the parameter is a value and the argument are passing the value to the function
13th Oct 2018, 3:40 PM
Yamini Jalibili
Yamini Jalibili - avatar
+ 3
For human the difference is when they are used For computer none, both are the things passed along a function / method
13th Oct 2018, 4:02 PM
🇵🇰 Danish Khan 🇵🇰
🇵🇰 Danish Khan 🇵🇰 - avatar
+ 1
its a different question Ishola I had this doubt for a long time. Thank you everyone
12th Oct 2018, 10:31 PM
Mr. Bot
Mr. Bot - avatar
+ 1
hi all, param are the values which are used when you define a function, and when we call that function, values we pass are known as arguments.
13th Oct 2018, 6:49 AM
Priya
+ 1
def fun(parameters): #formal arguments. set of statements fun(arguments) #actual arguments.
14th Oct 2018, 3:16 AM
Sin Cos Ø
Sin Cos Ø - avatar
+ 1
parameter is placed inside of the parenthesis when function is DECLARED and argument is placed inside of parenthesis when function is CALLED int hey(int a) { //code here } int main() { int b = 3 hey(b); } in this case a is the parameter and b is argument
14th Oct 2018, 7:36 PM
Michael Mamo
Michael Mamo - avatar
0
SO I'll confuse both
13th Oct 2018, 5:41 PM
Lucas Causse
Lucas Causse - avatar
0
You could see params as the variables. They are function inputs. They are the values the function needs to work on/by. While arguments is a collective name for those parameters. Hope I made some sense...
14th Oct 2018, 3:52 PM
Onoja Godswill