Saturday, 5 July 2014

C++ program to illustrate function with return value and no argument


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;
}

Any questions regarding to program please write in comments.

No comments:

Post a Comment