Program -
#include<iostream.h>
#include<conio.h>
void show(int a)
{
cout<<"\n function taking single argument is:\n";
cout<<a;
}
void show(int a,int n)
{
cout<<"\n function taking double argument is:\n";
cout<<a<<endl;
cout<<n;
}
void main()
{
clrscr();
void show(int);
void show(int,int);
char a=10;
int n=20;
show(a);
show(a,n);
getch();
}
Output -
function taking single argument
is:
10
function taking double argument
is:
10
20
0 comments:
Post a Comment