Appendix A

Common Errors in C

A.1 TYPES OF ERRORS

The errors in a program can be broadly classified as follows.

Programming Errors

These are generated when typographical errors are made by users.

Compile Errors

These are errors detected by the compiler which make the program un-compliable. Every language has syntax rules. These rules determine which statements are legal in the language and which are not. Compiler programs are designed to enforce these rules. When a rule is broken, the compiler reports an error message and an object file is not created. Most compilers will continue scanning the source file after an error and report other errors it finds. However, once an error has been found, the compiler may be confused by later perfectly legal ...

Get C Programming Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.