How to prototype the printMessage function : Function Prototype « Function « C++






How to prototype the printMessage function

How to prototype the printMessage function
 


#include <iostream>
using namespace std;
void printMessage(void);  // this is the prototype!

int main ()
{
   printMessage(); 
   return 0;
}
void printMessage (void)
{
   cout << "Hello world!";
}

           
         
  








Related examples in the same category

1.Function prototype in C++Function prototype in C++
2.function prototype with throw signature