bobvan (11/06/82)
Many thanks to Alan Watt who pointed out a clerical error in the C debugging puzzle I recently posted. The fragment in error should have read: for (ip = &array2d[0][0]; ip < &array2d[XDIM][YDIM]; ip++) rather than: for (ip = &array2d[XSIZE][YSIZE]; ip < &array2d[XSIZE][YSIZE]; ip++) Alan also correctly spotted the bug. Sorry for the confusion, Bob Van Valzah (...!decvax!ittvax!tpdcvax!bobvan) P.s. One additional puzzle: can you see why I used "ip = array" in the single dimensional case and "ip = &array2d[0][0]" in the 2d case? P.p.s. Just before posting the article, I considered actually compiling the fragments and testing them. Now I know that I should have.