Arguments vs. Parameters


#1

Hey guys! First, the book is great. I hope to use this as a leg up in my comp sci classes.

My question is this:
Am I correct in viewing the difference between arguments and parameters as a parameter is like a variable for the function whereas an argument is the type and parameter put together.

Another way of saying it: An argument is a type and a parameter.


#2

Not really.

Sometimes they get confused with each other as they mean almost the same thing.
For example when you call a function you pass an Argument or Arguments if there is more than one
Below you pass an argument with a value of 5.

But here you receive this argument inside a parameter and store this value in variable number of type int

aFunctionWithRandomName(int number)
{

}

Hope that makes sense.