Question: If you type a program incorrectly and, say, omit a semicolon, the compiler gives you a syntax error message. Even if you type it correctly,
If you type a program incorrectly and, say, omit a semicolon, the compiler gives you a syntax error message. Even if you type it correctly, however, the compiler may give you a warning similar to "Warningconversion from 'double' to 'float, possible loss of data." An error message means you did something wrong and prevents the program from being compiled. A warning, however, means you've done something that is valid code but possibly is not what you meant to do A warning does not stop compilation.
Provide one example for error and one for warning.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
