Thread: Parameters vs. Arguments

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    30

    Parameters vs. Arguments

    Do I have this straight:

    Parameters are a list within a function header of accepted data types.
    Arguments are the actual values that are passed to the function with respect to the parameters.

    Right?

  2. #2
    Registered User
    Join Date
    Jun 2004
    Posts
    6
    Absolutely correct.

    parameters are used while defining or declaring a function e.g. int a,int b in the declaration
    void dummy(int a,int b);

    arguments are the actual values passed to the function when a function is called e.g. 2,3 in
    dummy(2.3);

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    30
    Ahhh, thank you, Karam!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Beginner Needs help in Dev-C++
    By Korrupt Lawz in forum C++ Programming
    Replies: 20
    Last Post: 09-28-2010, 01:17 AM
  2. Multiple command line arguments with switches
    By Ene Dene in forum C++ Programming
    Replies: 4
    Last Post: 02-27-2009, 03:28 AM
  3. command line arguments
    By vurentjie in forum C Programming
    Replies: 3
    Last Post: 06-22-2008, 06:46 AM
  4. NULL arguments in a shell program
    By gregulator in forum C Programming
    Replies: 4
    Last Post: 04-15-2004, 10:48 AM
  5. registry, services & command line arguments.. ?
    By BrianK in forum Windows Programming
    Replies: 3
    Last Post: 03-04-2003, 02:11 PM