Forgot your password?  


Value Parameter | Research & Encyclopedia Articles

Print-Friendly   Order the PDF version   Order the RTF version
About 1 pages (169 words)
Parameter (computer science) Summary

 


Value Parameter

A value parameter is a variable that is passed to a function when it is called. Value parameters are also called actual parameters. Given the function call:

  • pow(i, j);

i and j are both value parameters. The values of i and j at the time this call is made to the pow() function are the values passed into the formal parameters of the function. The formal parameters are the variables used in the definition of the function. Given the function definition:

  • int pow(int base, int exp) {...}

base and exp are the formal parameters of the function. The type of any value parameter needs to be the same type as the formal parameter, or a subtype of the formal parameter's type. The order in which value parameters are passed to a function call will correspond to the order in which the formal parameters will be assigned values when the function is evaluated. The function's definition determines its formal parameters. However, every time a function is called, it can have different value parameters.

This is the complete article, containing 169 words (approx. 1 page at 300 words per page).

More Information
  • View Value Parameter Study Pack
  • Search Results for "Value Parameter"
  • More Products on This Subject
    Argument
    In all programming languages and command line interfaces, certain words, phrases, and codes that ar... more

    Parameter Declaration
    A parameter declaration tells the compiler the name of the function and the number, type and order ... more


    Ask any question on Parameter (computer science) and get it answered FAST!
    Answer questions in BookRags Q&A and earn points toward
    discounted or even FREE Study Guides and other BookRags products!
    Learn more about BookRags Q&A
    Copyrights
    Value Parameter from World of Computer Science. ©2005-2006 Thomson Gale, a part of the Thomson Corporation. All rights reserved.

    Join BookRagslearn moreJoin BookRags

    Join BookRagslearn moreJoin BookRags