BookRags.com Literature Guides Literature
Guides
Criticism & Essays Criticism &
Essays
Questions & Answers Questions &
Answers
Lesson Plans Lesson
Plans
My Bibliography Periodic Table U.S. Presidents Shakespeare Sonnet Shake-Up
Research Anything:        
History | Encyclopedias | Films | News | Create a Bibliography | More... Login | Register | Help

Search "Value Parameter"

Contents Navigation

Value Parameter

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

Bookmark and Share Questions on this topic? Just ask!

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"
  • Add This to Your Bibliography
  • 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




    About BookRags | Customer Service | Report an Error | Terms of Use | Privacy Policy