0

What is difference between compile time error and run time error in simple word?

8th Dec 2017, 5:20 PM
Rao Kamran
Rao Kamran - avatar
3 Respuestas
+ 1
A run time error will only occur when the code is actually running. While Compiler errors are due to inaccuracies in code. The compiler throws an error to alert you that something which will not be compiled, and therefore cannot be run.
8th Dec 2017, 5:36 PM
Elias Papachristos
Elias Papachristos - avatar
0
They are obvious from their names. Runtime error happens during running of program Compiler error happens during compiling of code. (Compile time errors refers to syntax and semantics)
8th Dec 2017, 5:37 PM
Salman
0
Compile time error is one which is because of wrong syntax or which is occur while you compile your program like instead of char 'A'; you write cha 'A'; it will produce compilation error while run time error is one which is occur when your program is running like when if your program stuck in some situation for which you did not write the code then your program will terminate and it is showing that run time error occurs example: your program get situation where some no is getting division by zero and you did not handle it by your own then it will show run time error.
8th Dec 2017, 5:41 PM
Dilip Agarwal
Dilip Agarwal - avatar