Please tell me what is the mistake i am commiting
Hi @sattyrajpoot39, try to print the value of s1 in main itself. You will notice your mistake. Once you do that use THE CORRECT METHOD told to you to that function.
Hello @sattyrajpoot39,
How can you return something from a function with void return type?
Correct that also.