"retired mainframer" wrote:

<begin extract>
What does "If not, not" mean?  Can the answer sometimes not be no?  That
would mean the test evaluates to false.

The code sets the value to 1 and then increments the value some number of
times.  Nowhere in the code is the value reset or decremented.  How does
that allow any condition other than the test will always be true?  What
difference does it make whether it is the first test or the 100th?
</end extract>

The answer can Indeed be no.

I commented only on what was posted.  The first time the if statement,
the first within the scope of  the for, is executed, the value of c is
1.  Thereafter, it can have any value in the supported C-language int
interval, for this implementation -2147483648 <= c <= +2147483647,

The C language imposes no FORTRAN-II-like restriction on the value of
a for-statement index variable.  It can be reset within the scope of
that for.

I thus meant just what I said.  If  "retired mainframer" reads
CAPL---where this  issue is discussed explicitly---with more care and
thus acquires a better grasp of C syntax he may well be in a position
to make more informed comments.  If not, not.


John Gilmore, Ashland, MA 01721 - USA

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to