Parameters and Arguments

Okay, I've been reading the C++Tutorial on this website and I'm on "Functions(I)" and I'm not sure what the difference is between parameters and arguments.
Well, when you have a function, say, function add that takes two values, adds them, and returns the added value, it requires parameters. When you write int addition (int a, int b) the "int a" and "int b" are the parameters- this function, when called, can have two integers passed to it. The actual integers you pass to it- 2 and 5, for example- are the arguments. So, in short, the parameters are the local variables you use to hold the values you pass to a function, and the arguments are the values you pass to the function to be stored in the parameters.
Topic archived. No new replies allowed.