Everything2
Near Matches
Ignore Exact
Full Text
Everything2

Return value

created by e-troon

(thing) by e-troon (2.6 wk) (print)   ?   (I like it!) Thu Feb 14 2002 at 10:58:16

The return value is the piece of data that a function "passes back" to its caller. For example, in C, a function that adds two int type numbers together (without forcing the programmer to use the complicated and confusingoperator) is this:

int add (int a, int b) {

        /* This function adds two ints together. */
        /* It does not check for overflows.      */

        return (a + b);
}

The return value is the sum of the two numbers a and b, which are the parameters or arguments of the function.


printable version
chaos

exit code rand() Where do discarded return values from functions really go? -1
Wormhole function How to calculate the day of the week for a given date shelf life
operator programmer caller connect()
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
The best nodes of all time:
Soap making
Max Clifford
Guessing the worth of something
The Doors
God Moving Over the Face of the Waters
Miami Herald, 2/13/96
Why I write
Tamarind
Two stories of the pistol
Aspects of American society that may be new to you
American Mythology
Flanders and Swann
Douglas Coupland
New Writeups
shaogo
July 20, 2008(log)
Glowing Fish
Tualatin River(place)
The Jacket
Words of Advice(idea)
John_Fox
Good Intentions Gone Wrong(person)
Heitah
Posthumous Oscar(thing)
ignis_glaciesque
University of South Florida(place)
ignis_glaciesque
Flogstaskriket(idea)
liveforever
Caesar's last breath(idea)
dagnyswaggart
she wants to believe(personal)
antigravpussy
he doesn't know, but her eyes widen too far(thing)
dagnyswaggart
Wild tides guard her secrets(poetry)
Lord Brawl
Caesar's last breath(poetry)
locke baron
Forgotten things in space(fiction)
sitaraika
Colours(idea)
etouffee
Wild tides guard her secrets(poetry)
E2 is a by-product of the existence of The Everything Development Company