1. Home
  2. Computing & Technology
  3. C / C++ / C#

Definition of Void

By David Bolton, About.com

Definition: Void is a value of a function type that means nothing is returned. Some languages have special types of functions known as procedures or subroutines that don't return a value.

C and C++ have a void type which means the same.

void dosomething( void ) {
// do something
}
// call the function
dosomething() ;
Void is also used to indicate that there are no parameters in the function.

Glossary:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Explore C / C++ / C#

More from About.com

  1. Home
  2. Computing & Technology
  3. C / C++ / C#
  4. Glossary
  5. V
  6. Void - Definition

©2008 About.com, a part of The New York Times Company.

All rights reserved.