Create a function prototype for the function welcome create

Create a function prototype for the function welcome. create a function implementation for the welcome message call this welcome function inside the main function and run the program.

Solution

Welcome.cpp

#include <iostream>

using namespace std;
void welcome();
int main()
{
welcome();
return 0;
}
void welcome(){
cout<<\"Hello World, Welcome to c++.\"<<endl;
}

Output:

sh-4.3$ g++ -std=c++11 -o main *.cpp sh-4.3$ main

Hello World, Welcome to c++.

Create a function prototype for the function welcome. create a function implementation for the welcome message call this welcome function inside the main functi

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site