<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3086" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Sweet! Metrowerks compiles it and lets you figure
it out for yourself...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>John Pavlick<BR><A
href="http://www.idseng.com">http://www.idseng.com</A></FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=bob@toprudder.com href="mailto:bob@toprudder.com">Bob Richards</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=nsrca-discussion@lists.nsrca.org
href="mailto:nsrca-discussion@lists.nsrca.org">NSRCA Mailing List</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, July 05, 2007 9:18
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [NSRCA-discussion]
Chapter-12 computer science.</DIV>
<DIV><BR></DIV>
<DIV>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.</DIV>
<DIV> </DIV>
<DIV>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.</DIV>
<DIV> </DIV>
<DIV>Bob R.</DIV>
<DIV><BR><BR><B><I>Keith Black <tkeithblack@gmail.com></I></B>
wrote:</DIV>
<BLOCKQUOTE class=replbq
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Guys!
You're getting carried away almost as bad as the judging
controversy!<BR>;-)<BR><BR>I think you're missing the point. This was a
trick question to see if you'd<BR>catch the fact that cnt was defined as
8-bits (char) and therefore would<BR>never reach 256. That was the only
point of the quiz.<BR><BR>Keith<BR><BR></BLOCKQUOTE>
<P>
<HR>
<P></P>_______________________________________________<BR>NSRCA-discussion
mailing
list<BR>NSRCA-discussion@lists.nsrca.org<BR>http://lists.nsrca.org/mailman/listinfo/nsrca-discussion</BLOCKQUOTE></BODY></HTML>