Here is a C++ program to illustrate function with return value and no argument
SOURCE CODE OUTPUT
#include<iostream>
using namespace std;
int value();
int main()
{
int a;
a=value();
cout<<"Function returns : "<<a;
return 0;
}
int value()
{
return 75;
}
using namespace std;
int value();
int main()
{
int a;
a=value();
cout<<"Function returns : "<<a;
return 0;
}
int value()
{
return 75;
}
Any questions regarding to program please write in comments.
No comments:
Post a Comment