Return With No Parameter
#include <stdafx.h>
#include <iostream>
using namespace std;
void display()
{
int i=10;
cout << "Value of i : " << i << endl;
return;
}
int main()
{
cout<< "Example of return without any parameter" << endl;
display();
return 0;
}
Output:
Example of return without any parameter
Value of i : 10