sample i/p and o/p:
Enter the number of strings: 3
Enter names : Pentium4
Celeron
AMD
Names are in ascending order
AMD
Celeron
Pentium4
sample i/p and o/p:
Enter the number of strings: 3
Enter names : Pentium4
Celeron
AMD
Names are in ascending order
AMD
Celeron
Pentium4
What's the plan? Drop off your assignment and pick up the completed program? I'm *not* impressed by your initiative, so far.
On this site, you need to get your assignment started, and then, if and when you have a problem or question, post up your code, and we'll help you get over the problem, or answer your questions.
The start is up to you, however. We're definitely not a short order service for programming requests.
Better idea - if you're struggling by this point, give up your course and choose another. In the long run, everyone will be a lot better off, including you.
By the sounds of your previous posts, you're just hoping for an answer each time and can't even be bothered to refer back to whatever notes you have been given, or a quick google.
- Compiler warnings are like "Bridge Out Ahead" warnings. DON'T just ignore them.
- A compiler error is something SO stupid that the compiler genuinely can't carry on with its job. A compiler warning is the compiler saying "Well, that's bloody stupid but if you WANT to ignore me..." and carrying on.
- The best debugging tool in the world is a bunch of printf()'s for everything important around the bits you think might be wrong.
You could put them in an array, and then use the value inside to sort it