C++ Function Definition before main()

Description

C++ Function Definition before main()

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



PreviousNext

Related