+ 2
arguments and parameters
what's the difference between arguments and parameters?
2 odpowiedzi
+ 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
+ 1
thank you