I have the following scenario:
Code:
int main()
{
char a[] = "Hello";
printf("Modified string: %s\n", modify_str(a));
}
char *modify_str(char *b)
{
/* Insert a '+' after every letter in the string */
/* "Hello" becomes "H+e+l+l+o+" */
return b;
}