[NSRCA-discussion] Chapter-12 computer science.

Bob Richards bob at toprudder.com
Thu Jul 5 05:18:52 AKDT 2007


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nsrca.org/pipermail/nsrca-discussion/attachments/20070705/1667c205/attachment.html 


More information about the NSRCA-discussion mailing list