CompuServe Messages

#languages

    11-Feb-92 21:22:26
Sb: #20271-#languages
Fm: John Draper 76703,4322
To: Shraddhan 70374,754
Well, not before the compile step, but certainly before you execute. Here's a trivial example I just tried… main() { int foo; printf("%d\n", foo); } (the square brackets above are actually curly braces, but CIS helpfully translates them for us). Then I did… 5> make test ….. Compiling test.c printf("%d\n", foo); test.c 7 Warning 94: uninitialized auto variable "foo" As you can see, it caught the use of the variable before it was initialized.