Question 18.4

I just typed in this program, and it's acting strangely. Can you see anything wrong with it?


See if you can run lint first (perhaps with the -a, -c, -h, -p or other options). Many C compilers are really only half-compilers, electing not to diagnose numerous source code difficulties which would not actively preclude code generation.

See also questions 16.5 and 16.8.

References: Ian Darwin, Checking C Programs with lint


Read sequentially: prev next up top


This page by Steve Summit // Copyright 1995 // mail feedback