Professional Documents
Culture Documents
1. Compiler Errors
- Programming language has rules to be strictly follow
- Compilers are picky
- Compilers translate codes written into machine code that function as written
- Compiler will not guess the meaning of the code, it will generate an error if it
doesn’t understands it
- Include:
a. Syntax Errors
- Something wrong with the structure
Forgot ;
Accidentally left out”
Wrongly spelt namespace
b. Semantic Errors
- Syntax is correct but the meaning of the code doesn’t makes sense to the
compiler
a + b if at least one of a and b is not integer
Perform mathematical operations on strings
2. Compiler Warnings
- DO NOT IGNORE COMPILER WARNINGS!!!
- The compiler has recognized an issue with your code that could lead to potential
problems
- Remained as warning instead of error because the compiler is still able to
understand the code and produce object codes from it