On Wed, 23 Jun 2004, Dan Veeneman wrote:
> Fred,
> Do you really give out tests like this:
No
I proofread them, and then more carefully proofread the hardcopy before
duplicating.
> At 06:06 PM 6/23/04, you wrote:
> >int N = 10;
> >while (N--) printf("&d\n",N);
> >What are the first and last numbers displayed?
> >is appropriate for open-book.
>
> I'm presuming there's a typo inside the quotes...
> otherwise you have a nice trick question!
I do sometimes deliberately give trick questions, such as
while (N);
{ printf("%d\n",N);
}
but this one was, indeed, a typo.
--
Grumpy Ol' Fred cisin_at_xenosoft.com
Received on Wed Jun 23 2004 - 18:00:22 BST