UMBC CMSC 201 Fall '05 CSEE | 201 | 201 F'05 | 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).
Statements like
create a much clearer picture of what's going on than
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.
Sunday, 21-Aug-2005 09:53:53 EDT