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

By: Anshuman

$
0
0

you must not use specify the default value both in function prototype and definition

void printvalues(int nvalue1, int nvalue2)
{

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

}

Viewing all articles
Browse latest Browse all 48

Trending Articles