[NSRCA-discussion] Chapter-12 computer science.

John Pavlick jpavlick at idseng.com
Wed Jul 4 17:51:29 AKDT 2007


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


More information about the NSRCA-discussion mailing list