UMBC CMSC 201
CSEE | 201 | 201 F'06 | lectures | news | help
You know by now that getting your code to compile is less than half the battle. If your program is acting funny, there are a few things you can do. One is to use probes (printf statements).
Because output to stdout is buffered, printf() statements must contain a newline character or they will not always give you an accurate picture of your program execution if the program stops suddenly, as in a segmentation fault or bus error.
Tuesday, 22-Aug-2006 07:14:17 EDT