heres a sample program
#include<iostre am>
using namespace std;
void add(...)
{
cout<<"match using ellipsis";
}
void add(int a,int b)
{
cout<<"a and b are"<<a<<b;
}
main()
{
add(1,2);
add(1);
}
and the op is
a and b are 1 2(first function call)
match using ellipsis(secind function call)
but in the second function definition of match using ellipsis how do i retrieve a and b and use the values of a and b inside my func definition
#include<iostre am>
using namespace std;
void add(...)
{
cout<<"match using ellipsis";
}
void add(int a,int b)
{
cout<<"a and b are"<<a<<b;
}
main()
{
add(1,2);
add(1);
}
and the op is
a and b are 1 2(first function call)
match using ellipsis(secind function call)
but in the second function definition of match using ellipsis how do i retrieve a and b and use the values of a and b inside my func definition
Comment