Hi all,
I got this problem after reviewing aznballerlee's problem posted some time back and the replies to it.
I need to design the same function but with only one parameter i.e
remove_S(char *p)
I cannot take any local variables within the function.
main looks like this ...
int main()
{
char str[]="she 'll be a massless princess";
printf("%s",str);//prints original string
remove_S(str);
printf("%s",str); //prints- he 'll be a male prince
return;
}
I did got this solution of using recursion as well as using functions like strcpy() or memmove() but again, that implicitly uses more variables.
So can somebody help me out with this one ??
Thanks in advance..