I have a program here: I have a doubt in passing arguments to the function display().
void display(int = 20,int = 30,int = 50);
int main()
{
display(5,12);
return 0;
}
void display(int i,int j,int k)
{
cout<<i<<endl;
cout<<j<<endl;
cout<<k<<endl;
}
If this function display is called by passing 2 arguments to it, how can we make sure that these arguments are treated as first and third, whereas second argument is default.