473,472 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

difference between argument and parameter

5 New Member
what's the difference between an argument and a parameter. My friend and i are going nuts over this question.
Oct 16 '08 #1
5 15388
boxfish
469 Recognized Expert Contributor
For example, if you have this function:
Expand|Select|Wrap|Line Numbers
  1. def explain_param_vs_arg(param1, param2):
  2.     print param1, param2
  3.  
and call it like this:
Expand|Select|Wrap|Line Numbers
  1. explain_param_vs_arg("arg1", "arg2")
  2.  
The variables param1 and param2 are the parameters, and the values that you give them, in this case "arg1" and "arg2", are the arguments. Wikipedia explains. This question could have been easily googled. In fact, that's what I did.
Hope this makes sense.
Oct 16 '08 #2
cooolsson
5 New Member
Thanks for the answer. Now i can sleep at night.
Oct 17 '08 #3
gaurav1086
4 New Member
there's as much difference as between a normal function and an inline function(or u may call it a macro). One is used in a simpler way (parameters) while the other in a more versatile way(arguments). thats all
regards
Oct 17 '08 #4
exepaul
1 New Member
unctions have parameters (def fn(parameter):), and function calls have arguments (fn(argument)).

Parameters are defined by the names that appear in a function definition, whereas arguments are the values actually passed to a function when calling it. Parameters define what types of arguments a function can accept.
Oct 8 '16 #5
Oralloy
988 Recognized Expert Contributor
Common use seems to have both confused and used indiscriminately in conversation. One can talk about the parameters used to call a function or arguments in the function.

Us programmers aren't quite as precise about language as we aught.
Oct 9 '16 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

18
by: John M. Gabriele | last post by:
I've done some C++ and Java in the past, and have recently learned a fair amount of Python. One thing I still really don't get though is the difference between class methods and instance methods. I...
18
by: SDZ | last post by:
Could somebody explain in simple forms, what is/are the difference(s) between - scanf and sscanf and ssscanf - printf and sprintf - open and fopen Thanks in advance, SDZ
10
by: Jon Davis | last post by:
I've been using the ref keyword as a way of passing strings to methods as references so that in the method I don't have to manually return the modified "version" of what was passed into the method,...
2
by: Alexander Fedin | last post by:
Guys, I 've met some strange behaviour of the C# compiler. To reproduce it please try to compile the code below and you 'll be really amazed. The problem is that you can not use an interface...
14
by: code break | last post by:
what is the difference in this pointers decalarition ? int *ptr; and int (*ptr);
5
by: puzzlecracker | last post by:
C++ standard says the following: I am reading through c++ standard and have a difficulty understanding the difference between these two terms. Thanks, puzzlecracker
0
by: Michael Rudolph | last post by:
Hi DB2 newsgroup, I have encountered a difference between our development DB2 on Windows and the test environment on AIX. If using the LOCATE scalar function with a SMALLINT as LENGTH parameter...
3
by: C++Liliput | last post by:
Hi, I was looking at the implementation of operator new and operator new in gcc source code and found that the implementation is exactly the same. The only difference is that the size_t argument...
1
by: Mohammed Alamgir Hosen | last post by:
Hello It is my first question to you. I have a little confuse about the different between Parameter and Argument. I will very glad if you help me in this occasion.. Yuor's ever Alamgir
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.