using namespace std;
void display(char []);
void display(char [],char []);
int main ()
{
char first[] = "I have done recursion";
char second[] = " also over loading";
display(first);
display(first,second);
return 0;
}
void display(char s[])
{
cout<<s<<endl;
}
void display(char s[],char t[])
{
cout<<s<<endl<<t<<endl;
}
No comments:
Post a Comment