Sunday, 24 July 2011

PROGRAM IN C++ to explain the concept of the default arguments

Do you like this post?
#include
#include
float interest(float p,int n,int r=15)
{
return((p*n*r)/100);
}
void main()
{
clrscr();
cout<<"\n The interest is : Rs."< getch();
}

No comments:

Post a Comment