Here is a C++ program to illustrate function with arguments and no return value
SOURCE CODE OUTPUT
#include<iostream>
using namespace std;
void value(int);
int main()
{
value(10);
return 0;
}
void value(int n)
{
cout<<"Value passed to the function : "<<n;
}
using namespace std;
void value(int);
int main()
{
value(10);
return 0;
}
void value(int n)
{
cout<<"Value passed to the function : "<<n;
}
Any questions regarding to program please write in comments.
No comments:
Post a Comment