Comments

thanks

thanks i didnot think about pass by reference.

But if we donot need to return character array or any type of array then why we need to return or pass by reference in case of "string" ?

i am trying but not getting desired output. can you attach the code here ?