Hi All,

I need the sample code for following questions.


I have one string : "my name is sam"
Now I have to reverse it : "mas si eman ym"

also count the no of words in the string
also revert like this : "sam is name my"

Could anyone please help me by providing sample code ? I don't want to use string class.

Looking forward for your valuable input.

Thanking you in advance.

Regds,
Sam