answersLogoWhite

0


Best Answer

Warnings and errors are both errors in C++, but warnings won't prevent your program from compiling, whereas errors will. Some warnings may be unavoidable in the interest of optimising performance, but so long as they do not affect the program's operations they can often be ignored. For instance, casting an unsigned char to a signed char has potential for loss of data if the unsigned char is greater than 127, and is therefore an unsafe cast. But if you can assert the cast is safe then the warning can be ignored. The alternative would be to cast to a larger type (such as casting to a signed short), but this might result in large changes to your program where a signed char is expected. As programmer, you are free to decide whether the warning really should be treated as an error, or if the warning can be safely ignored with prudent assertions instead.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

If you mean compilation messages, well if there are errors, not only warnings, then no object module is created.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between error and warning message in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the different between Message Error and Beep sound error?

Message error sound: chord An error from a program happened error=warning Message beap error sound: Ding A question us being asked by windows to the user Critical message: Windows Critical Stop A rogram is at risk or is being shut down hope it helped :)


What is the difference between a mistake and an error?

There is no difference.


What is the difference between a error and a mistake?

There is no difference.


What is the difference between low percent error and high percent error?

The difference between low percent error and high percent error is one is low and the other is high


What is the difference between a bias and a random error?

Bias is systematic error. Random error is not.


What is the relationship of the standard error of the mean to the standard error of the difference?

It would help to know the standard error of the difference between what elements.


What is difference between the accepted value and the experimental value?

the answer is error or experimental error.


Difference between an error and a mistake?

they are the same thing.


What is an parallax error?

The difference between an actual correct view and a displaced visual parallax error


What is the index error in theodolite?

Half of the difference between the two positions is called the "index error".


How do you get your iMac to stop giving you an error message?

That depends on what the error message is, which you did not list.


What is the difference between dying and dying?

'Dieing' is a spelling error.