0
What is difference between Argument and Parameters?
1 Answer
- 1
They are basically the same. When you are declaring a function, you use parameters, for example:
//a and b are parameters, they do not have actual user definded value
int sum(int a, int b) {
return a + b;
}
Arguments are actual values passed by programmer:
//a and b are parameters, they are passed to already defined function
int a = 6, b = 82;
sum(a, b);
But I think most programmers are using these two in same meaning. Don'l let it confuse you.