promotion image of download ymail app
Promoted
Anonymous
Anonymous asked in Computers & InternetProgramming & Design · 1 decade ago

what is the difference between run time errors and compile time errors?

5 Answers

Relevance
  • 1 decade ago
    Favorite 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 .

    • Commenter avatarLogin to reply the answers
  • 1 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.

    • Commenter avatarLogin to reply the answers
  • Andy T
    Lv 7
    1 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.

    • Commenter avatarLogin to reply the answers
  • 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....

    • Commenter avatarLogin to reply the answers
  • How do you think about the answers? You can sign in to vote the answer.
  • 3 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.

    • Commenter avatarLogin to reply the answers
Still have questions? Get your answers by asking now.