0

What is difference between Argument and Parameters?

28th Oct 2016, 2:56 PM
Pavani
1 Respuesta
- 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.
28th Oct 2016, 4:42 PM
Daniel Oravec
Daniel Oravec - avatar