Modern Electronics (was Re: List charter mods & headcount... ;

From: Fred Cisin <cisin_at_xenosoft.com>
Date: Wed Jun 23 20:51:04 2004

I intended that as a "sample" to illustrate a case where knowledge
would make it trivial, but use of the book will only help partially.
But here is the variant of that that I used in the mid-term (9 weeks
into the class) THIS semester. The primary thing being tested in
this "trivial" exercise is whether they understand whether the
increment occurs before or after the body of the loop. NO, it
is NOT the whole test!


8. Draw out EXACTLY what the following program will display.
     #include <stdio.h>
     main()
     { int x=8;
     while (x++<=13) printf("%4d%4d\n",x,x+x); }
Received on Wed Jun 23 2004 - 20:51:04 BST

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:37:00 BST