Tuesday, 3 February 2015

Void Function in C++

Structure of the Problem Requirements 

The Void Function has prototype like other functions but without data types. The void function does'n return any value. Sometime we don't need to return a value from a function so we used void function. Remember that void is a type which tell the compiler that function return nothing.

Source Code

using namespace std;
void LEP ();
int main ()
void LEP ()
cout<<" \t \t \t LEP \n \n \n ";
cout<<" LEP Provide the Solutions of Many Programming Problem. You May Learn \n";
cout<<" 1. C++ \n ";
cout<<" 2. Java \n ";
cout<<" 3. Android \n ";
cout<<" 4. SEO \n ";
cout<<" 5. Programming Tips \n ";
cout<<" \t \t \t \t \t \t Thank u!";

Output of the Program

Void Function in C++

Share it Please

About Author!

Asad Niazi is Software Engineer , Programmer, Web Developers and a young mentor of Tech Solutions Desk and Blogging Solutions . Asad Love to writes about Technology, Programming, Blogging and make money online.


Post a Comment