PDA

View Full Version : Funvtions written in c++


priyanka kothar
Mar 10, 2009, 03:19 AM
Why and where should 'void' is used in a c++ program

Perito
Mar 10, 2009, 04:33 AM
"void" is used to indicate that a function will not return a value. It is also used for a variable when a type is not specified. Here's a Microsoft discussion:

void (C++) (http://msdn.microsoft.com/en-us/library/fxky5d0w(VS.80).aspx)

manish11
Jul 19, 2009, 03:13 AM
void is used when a particular function does not return any value.. it is used to indicate that function is not returning any value.. :)