Print the contents of string array in ascending order
Discuss Print the contents of string array in ascending order in the C Programming forum on Dev Shed. Print the contents of string array in ascending order C programming forum discussing all C derivatives, including C#, C++, Object-C, and even plain old vanilla C. These languages are low level languages, and used on projects such as device drivers, compilers, and even whole computer operating systems.
Time spent in forums: 2 Days 3 h 47 m 43 sec
Reputation Power: 2
Notice that putchar('\n') is not associated with the inner for, the prog enters there only after completing the inner loop for a certain value of 'n'. Then it goes back to the outer loop, decreases 'n' and enters the inner loop again.
It's just one version of many, but you get the general idea.