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#
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

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

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

All rights reserved.