What is the difference between a runtime error and a compilation error? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the difference between a runtime error and a compilation error?

I get confused all the time

15th Dec 2019, 8:41 PM
CeePlusPlus
CeePlusPlus - avatar
1 Answer
+ 7
"A runtime error happens during the running of the program. A compiler error happens when you try to compile the code. If you are unable to compile your code, that is a compiler error. If you compile and run your code, but then it fails during execution, that is runtime” https://stackoverflow.com/questions/9471837/what-is-the-difference-between-run-time-error-and-compiler-error
15th Dec 2019, 8:45 PM
Jax
Jax - avatar