C interview Lint Interview Questions

C interview Lint Interview Questions
1.I just typed in this program, and it’s acting strangely. Can you
see anything wrong with it?

A:Try running lint first.

2.How can I shut off the “warning: possible pointer alignment
problem” message lint gives me for each call to malloc?

A:It may be easier simply to ignore the message, perhaps in an
automated way with grep -v.

3.Where can I get an ANSI-compatible lint?

A: See the unabridged list for two commercial products.

No comments: