[NSRCA-discussion] Chapter-12 computer science.

Ed Alt ed_alt at hotmail.com
Wed Jul 4 17:55:58 AKDT 2007


Yeah, it loops forever.  Just like this thread....

----- Original Message -----
From: "John Pavlick" <jpavlick at idseng.com>
To: "NSRCA Mailing List" <nsrca-discussion at lists.nsrca.org>
Sent: Wednesday, July 04, 2007 8:51 PM
Subject: Re: [NSRCA-discussion] Chapter-12 computer science.

> No it doesn't. You guys amaze me... <LOL>
> 
> John Pavlick
> http://www.idseng.com
> 
> ----- Original Message ----- 
> From: "Martin X. Moleski, SJ" <moleski at canisius.edu>
> To: "NSRCA Mailing List" <nsrca-discussion at lists.nsrca.org>
> Sent: Wednesday, July 04, 2007 1:05 AM
> Subject: Re: [NSRCA-discussion] Chapter-12 computer science.
> 
> 
>> John Pavlick wrote:
>>> OK, what does this do?
>> 
>>> char foo(void)
>>> {
>>>      char cnt, num;
>>> 
>>>     for(cnt = 0, num = 0; cnt < 256; cnt++)
>>>     {
>>>          num++;
>>>     }
>>>     return num;
>>> }
>> 
>> 
>> Initializes cnt and num to 0.
>> 
>> Increments cnt and num from 0 to 255
>> by passing through the for loop.
>> 
>> Returns 255.
>> 
>> 
>> Marty
>> _______________________________________________
>> NSRCA-discussion mailing list
>> NSRCA-discussion at lists.nsrca.org
>> http://lists.nsrca.org/mailman/listinfo/nsrca-discussion
> _______________________________________________
> NSRCA-discussion mailing list
> NSRCA-discussion at lists.nsrca.org
> http://lists.nsrca.org/mailman/listinfo/nsrca-discussion
> 


More information about the NSRCA-discussion mailing list