I need a function reverseWords(str_arg) –it will return a string containing the words of the string str_arg in reverse order. For example, if reverseChars("The quick brown fox jumps over the lazy dog") is called, the return value will be "dog lazy the over jumps fox brown quick The".

Can anyone help me, pls?

Mittineague
—
2010-06-18T01:45:05Z —
#2

supreme_oleg said:

Yes, this is correct.

Be warned! I have seen threads where students asked for answers and because they didn't show what code they had written so far for themselves, other more knowledgeable members provided solutions that worked but were so advanced it would be obvious to a teacher that the student copy/pasted instead of making an effort to learn.

Mean? Look at it this way, if you don't at least try to learn, it's not fair to others and it's not fair to you. No one is going to be there handing you code when it's test time. If someone gives you code that gets you in trouble it will teach you a lesson you need to learn.