Crypto Concerns

After spending some time thinking about cryptocurrencies, I have developed some opinions on where things are headed. I could be wrong, and these views will no doubt evolve over time, but I hope…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Parameter vs argument

There is some confusion about argument and parameter and some programmers use this term alternately. There is however important distinction between those two terms.

The parameter is a special kind of variable declared in the function signature. It is a placeholder that is used to access function input data (argument). Let’s look at an example. Below function defines two parameters a and b.

The argument, on the other hand is the actual value passed to a function when the function is called. We can say that function defines parameters and it takes arguments.

When sum function is called parameters (a, b) are substituted with corresponding arguments (1, 4).

We can think about the argument as value/reference that is passed to a function while parameters are values ‘received’ by a function.

At first difference between parameters and arguments may be a little confusing, but now you should be able to easily distinguish both concepts.

To learn about other concept and conductus take a look at Code building blocks series.

Add a comment

Related posts:

Kisah

mungkin hanya miliaran, atau triliunan debu itu. “Kisah” is published by Muhajir M.A.

IELTS Coaching Institute in Punjabi Bagh

The way into this technique is perusing the content — the WHOLE content — once. As you read each section, you should attempt to manage all the inquiry types individually. At the end of the day, don’t…

The Rebellion Fantasy

From a very young age our minds are conditioned in the “rule-following” social fabric and majority of us abide to this by the threat of punishment, fear or social stature. Unknowingly in our…