TOOLS AND TECHNIQUES FOR COMPILER DESIGN
MISCELLENOUS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
compiling text program
|
|
error showing
|
|
compiling error showing
|
|
syntax error only showing
|
Detailed explanation-1: -Compilation error refers to a state when a compiler fails to compile a piece of computer program source code, either due to errors in the code, or, more unusually, due to errors in the compiler itself. A compilation error message often helps programmers debugging the source code.
Detailed explanation-2: -A compiler error happens when you try to compile the code. If you are unable to compile your code, that is a compiler error. If you compile and run your code, but then it fails during execution, that is runtime. In your example, discountVariable is of declared type DiscountSale and saleVariable is of another type.
Detailed explanation-3: -Syntax error. Internal error. Logical error. Symantic error. 29-Mar-2023