Void Functions
A void function performs some action, but does not return a value. For a void function, a functioninvocation (function call) is a statement that can be used like any other C++ statement.
Example :
// void function example by NavidPlus.BlogSpot.com
#include <iostream> using namespace std; void printmessage () { cout << "This message is created by NavidPlus!"; } int main () { printmessage (); } |