Remember, this code is the one that verifies C quotes, parentheses, brackets, and braces, the logic you mentioned in post #6. It does not implement the logic you specified in your initial post and what I described in post #3.

I'm sorry I confused everyone; I just got engrossed with the tangential, and lost the main thread here.
You don't need to feel sorry; I knew what the code was doing because I tested it.
I will also analyse the easier program. Many thanks for your effort people.