.
Home About-us Privacy Policy Contact-us Services

Friday, October 9, 2015

C++ Program to concept of argument matching

ad+1

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

Home About-us Privacy Policy Contact-us Services
Copyright © 2014 All Programs Examples | All Rights Reserved. Blogger Templates Download Blogger Templates