Originally Posted by
NinjaFish
As I said, i'v been working from examples. That above code is just a slightly modified example from the book. And yes i'v written it out. Multiple times. As a matter of fact, im heading on.. 4 and a half hours of sitting on this question, trying to work it out logically and make changes. However, I originally did C++ in my college course taught by a rather anal man whom expected perfection and the best possible professionally written program in a beginner course, which never helped. Since I am learning C, I am having a bit of a hard time adapting to the small syntax change C++ added, so C is not only being difficult, but I also have no knowledge, whatsoever, of characters in programming. The closest I ever even had to know was string, which isn't char.
Also, my learning comes from two things -- visual reference // self-understanding of how the code works. Unfortunately, the text and code I'v been only outlines how the program works, and gives no way of how a negative counter can work with characters. And up until this example, everything has been basic numerics and printf statements.