Reference.Void History

Hide minor edits - Show changes to markup

July 17, 2007, at 08:15 PM by David A. Mellis -
Changed lines 8-18 from:

// actions are performed in the function "setup" but // no information is reported to the larger program

void setup(){

serial.begin(9600);

}@]

to:

// actions are performed in the functions "setup" and "loop" // but no information is reported to the larger program

void setup() {

  // ...

}

void loop() {

  // ...

} @]

July 17, 2007, at 06:07 PM by Paul Badger -
Changed lines 3-5 from:

The void keyword is used only in function declarations. It indicates that the function is expected to return no information, to the function from which it was called.

to:

The void keyword is used only in function declarations. It indicates that the function is expected to return no information to the function from which it was called.

July 17, 2007, at 01:41 PM by Paul Badger -
Changed lines 17-19 from:

} @]

to:

}@]

July 17, 2007, at 01:41 PM by Paul Badger -
Added lines 23-24:
July 17, 2007, at 01:41 PM by Paul Badger -
Changed line 22 from:
to:
July 17, 2007, at 01:40 PM by Paul Badger -
Added lines 1-22:

void

The void keyword is used only in function declarations. It indicates that the function is expected to return no information, to the function from which it was called.

Example:


// actions are performed in the function "setup" but 
// no information is reported to the larger program


void setup(){       

serial.begin(9600);

} 
 

See also

Share