Basic and Advance C Question:
Download Questions PDF

Dont ANSI function prototypes render lint obsolete?

Answer:

Not really. First of all, prototypes work only if they are present and correct; an inadvertently incorrect prototype is worse than useless. Secondly, lint checks consistency across multiple source files, and checks data declarations as well as functions. Finally, an independent program like lint will probably always be more scrupulous at enforcing compatible, portable coding practices than will any particular, implementation-specific, feature- and extension-laden compiler.
If you do want to use function prototypes instead of lint for cross-file consistency checking, make sure that you set the prototypes up correctly in header files.

Download C Programming Interview Questions And Answers PDF

Previous QuestionNext Question
I need code to parse and evaluate expressions.Where can I get an ANSI-compatible lint?