0
What is difference between compile time error and run time error in simple word?
3 Answers
+ 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.
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)
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.