Question is :-
String repeat(String s, int n) that creates and returns a new string that is made by concatenating
n copies of the parameter string s. For example, calling this method with the parameters “Hello”
and 3 would return the string “HelloHelloHello”. If n equals zero, the method should return the
I am a beginner in c and trying my hand at recursion .This code doesn't work.
Please guide me and also tell any clever/advance/optimise steps that i can use to code as a pro.
char* Repeat(char *s,int n)
return " ";
printf("Enter the no of times u want to repeat\n");