what is the difference between run time errors and compile time errors?
- 1 decade agoFavorite Answer
Runtime errors are the errors which possibly happen at the time of program execution like division by zero or overflow errors . Your program execute correctly but it may crash at any time of execution due to the existence of logical errors .
Compile time errors are the errors which can happen at the time of compilation and they exist due to the mistakes that the programmer has done like redefinition of variables or functions ! Your program won't compile if it has compile time errors .
- Jim MarylandLv 71 decade ago
Compile time errors will stop the compilation while a run time error generally involves logic type errors (divide by zero for example) or array bound errors (accessing the sixth element in a five element array). Compile errors are often syntax or type related errors that the compiler can detect.
- Andy TLv 71 decade ago
Runtime error happens at running time of a program; often as a result of external error condition or some unexpected condition.
Compile error happens at compiling time, usually syntactical error in the code creating an ambiguous line that the compiler can't decide for you.
- 1 decade ago
as the name implies complile time errors come at complie time means they can be seen at compile time. Complier can find these errors and will not run program until they are removed.....whereas runtime errors come at runtime they are errors which occur generally due to user eg divide by zero error etc....so due to these errors our program crashes....
- How do you think about the answers? You can sign in to vote the answer.
- bornhoftLv 43 years ago
"convey at the same time time" is once you build your code - while the compiler converts your source code into gadget language. "Runtime" is while your code is achieved. detection and correction relies upon on what language u use.