CPPForSchool.com: String Set 1 Assignment 2

2. Write a program to display string from backward.


This assignment was built upon the prior task of counting characters in a string.  From there, I had to utilize the algorithm provided within the tutorials.  Nevertheless, I am extremely happy with the outcome.  It works!  Ultimately, the program firsts determines the length of the string array, followed by printing the array counting from right to left.  This was accomplished by subtracting one from the length with each pass.









Comments

Popular posts from this blog

CPPForSchool.com: Variable, Operator & Expression Set 1: Assignment 9

CPPForSchool.com: Array - Single Dimension Set 1 Assignment 6

CPPForSchool.com: Variable, Operator & Expression Set 1: Assignment 8