i want to print words in reverse.
i could print characters in reverse but not words
for(int i=arr.length;i>0;i--)
printf(arr);
pavani2006
0
Newbie Poster
Recommended Answers
Jump to Post1. Please figure out how to use [code]
[/code] tags real soon.
Isn't the water mark at the back of the edit box, or the READ THIS FIRST links enough for you?2. printf(arr);
The first parameter of printf() is a control string, not your data.
Jump to Post>help me in aproper way
Say please, jerk. The least you could do is show some respect to the people who are volunteering their time to help you for nothing in return.>i could print characters in reverse but not words
Okay, you can print the characters in reverse …
Jump to Post>Is that the question is reversing each individual word ?
Yes, that's what the OP wanted.
All 10 Replies
Salem
5,138
Posting Sage
pavani2006
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
kishore22
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
ndeniche
402
Posting Virtuoso
Featured Poster
Chaster
2
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
devaru2003
0
Newbie Poster
devaru2003
0
Newbie Poster
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.