Quantcast
Channel: Comments on: 7.7 — Default parameters
Viewing all articles
Browse latest Browse all 48

By: Sphingine

$
0
0

Can i give d definition as:

void printvalues(int nvalue1=0, int nvalue2=2)
{

cout<<"1st : "<< nvalue1<< endl;
cout<<"2st : "<< nvalue2<< endl;

}

and call the function as:

printvalues(,3);


Viewing all articles
Browse latest Browse all 48

Trending Articles