|
-
February 1st, 2009, 06:45 AM
#3
Re: arguments and parameters difference
Using the definitions from Stroustrup's C++ glossary:
argument - a value passed to a function or a template. In the case of templates, an argument is often a type.
parameter - a variable declared in a function or templates for representing an argument. Also called a formal argument. Similarly, for templates.
Sometimes "argument" is used in both cases, upon which "actual argument" means argument and "formal argument" means parameter. Likewise, sometimes "parameter" is used in both cases, upon which "actual parameter" means argument and "formal parameter" means parameter.
EDIT:
Okay, I did not read the question very carefully... but I personally find it easy to distinguish between the two after some practice. Often it does not matter anyway as the terms might be used interchangeably.
Last edited by laserlight; February 1st, 2009 at 06:47 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|