|UMBC CMSC 201 Spring '02||CSEE | 201 | 201 S'02 | 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.
Thursday, 17-Jan-2002 13:52:21 EST