hello every one i was doing a C++ problem and found help on internet but one function confuse m that why we use pointer with function can any one explain me i am beginner in programming
char * replace_char( char *s, char source = 'a', char substitution = 'e' )
{
if ( *s )
{
if ( *s == source ) *s = substitution;
replace_char( s + 1, source, substitution );
}
return s;
}