constint NUM_QUESTIONS = 9;
int n = NUM_QUESTIONS;
while( --n )
// Or as a for loop...
for( int i=0l i < NUM_QUESTIONS; ++i )
I was getting a feeling some time ago that the simplest way to get to the heart of this would be to post the complete source code which is giving rise to the errors, rather than just individual snippets.
I will be torn to pieces for this, but guess what? A very thorough search has revealed the problem to be a typo.
I'd like to thank you all for your help and apologize for having wasted your time. I should have found that error before posting.