Write a function which accepts a sentence as input parameter.
Each word in that sentence is to b reversed (remember: not the whole sentence to b reversed, each word should b reversed). Space should b there between each word.
Return the sentence with reversed words to main function and produce the required output
For ex:
Input:
Jack jill jung kill
Output:
kcaj llij gnuj llik
anushabit
0
Newbie Poster
Recommended Answers
Jump to PostHave you had a sit down with a pen and paper and created a flow chart/pseudocode of what you can try?
What have you done so far?
How far are in are you, what kind of loops and are you familiar with? Are you using null terminated strings or string …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.