English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

5 answers

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 .

2007-02-20 04:57:28 · answer #1 · answered by Mo 3 · 0 0

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.

2007-02-20 04:57:06 · answer #2 · answered by Jim Maryland 7 · 2 0

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.

2007-02-20 04:56:20 · answer #3 · answered by Andy T 7 · 2 0

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....

2007-02-20 04:57:28 · answer #4 · answered by Puneet Sharma 3 · 1 0

"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.

2016-12-17 14:40:09 · answer #5 · answered by bornhoft 4 · 0 0

fedest.com, questions and answers