+ 2

arguments and parameters

what's the difference between arguments and parameters?

11th Aug 2016, 8:08 PM
Kawther Alshab
Kawther Alshab - avatar
2 Réponses
+ 1
firstly you need to clear about calling and called function. parameter are variable we use while calling a function arguments are the variable local to that function example suppose I have define the function called void myfun(int a,int b); with some definition and called it in main function as int p=4,q=6; myfun(p,q); so here p and q are parameter while a and b are arguments
12th Aug 2016, 3:52 AM
Swapnil Dewalkar
Swapnil Dewalkar - avatar
+ 1
thank you
12th Aug 2016, 8:44 AM
Kawther Alshab
Kawther Alshab - avatar