Question: what is the difference between error and warning in c?
Answer: Are you talking about warnings and errors from a C or C++ compiler? If that's the context: An error occurs when your source is not a legal program. ... A warning occurs when your program is legal, and the compiler can produce object code for it, but something doesn't look right.