Progress made by GCC’s static analyzers is fairly impressive:
developers.redhat.com/articles

Not enough of a reason to write C of course :-) but good for existing code.