Our First Function - C++ Function

C++ examples for Function:Function Creation

Description

Our First Function

Demo Code

#include <iostream> 
  
using namespace std; 
  
void PrintHello() 
{ 
        cout << "Hello!" << endl; 
} 
int main(int argc, char *argv [])
{ 
        PrintHello(); //from www.ja  va2s  . c o  m
  
        return 0; 
}

Result


Related Tutorials