CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Threaded View

  1. #3
    Join Date
    Jan 2006
    Location
    Singapore
    Posts
    6,765

    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.
    C + C++ Compiler: MinGW port of GCC
    Build + Version Control System: SCons + Bazaar

    Look up a C/C++ Reference and learn How To Ask Questions The Smart Way
    Kindly rate my posts if you found them useful

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
  •  





Click Here to Expand Forum to Full Width

Featured