[NSRCA-discussion] Chapter-12 computer science.
John Pavlick
jpavlick at idseng.com
Thu Jul 5 21:48:21 AKDT 2007
Sweet! Metrowerks compiles it and lets you figure it out for yourself...
John Pavlick
http://www.idseng.com
----- Original Message -----
From: Bob Richards
To: NSRCA Mailing List
Sent: Thursday, July 05, 2007 9:18 AM
Subject: Re: [NSRCA-discussion] Chapter-12 computer science.
Well, I could not stand it any more. After finding the old copy of Turbo C on my old laptop, I entered the code and compiled it. Turbo C highlighted the "for...." line and gave the following warning: "Constant out of range in comparison...." If I changed the type declaration to int instead of char, no such warning.
I wrote a lot of lines of C code (not C++) but that was 10 years ago. Turbo C could find a lot of problems during compilation.
Bob R.
Keith Black <tkeithblack at gmail.com> wrote:
Guys! You're getting carried away almost as bad as the judging controversy!
;-)
I think you're missing the point. This was a trick question to see if you'd
catch the fact that cnt was defined as 8-bits (char) and therefore would
never reach 256. That was the only point of the quiz.
Keith
------------------------------------------------------------------------------
_______________________________________________
NSRCA-discussion mailing list
NSRCA-discussion at lists.nsrca.org
http://lists.nsrca.org/mailman/listinfo/nsrca-discussion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nsrca.org/pipermail/nsrca-discussion/attachments/20070706/34839944/attachment.html
More information about the NSRCA-discussion
mailing list