answersLogoWhite

0


Best Answer

A run-time is an error that occurs when the program is executing (running). This is where segfaults and other horrible things happen.

A compile-time error is an error that occurs when you are compiling the code. This is where code syntax and semantics are checked. You want errors to only occur here.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

It is easy if you know what compile time is, and what run time is.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between run-time error and compile error?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between runtime errors and compile time error?

Compile time errors occur do to syntax errors (such as forgetting a semi-colon at the end of a line) and they prevent your program from even compiling. A runtime error is an error in logic in your program. Your program will compile, however while running the program it will throw an error because it tries to do something illegal (such as dividing by 0).


What error is caught when a program executes?

compile error


If you put a try block without catch block then wt the error type is it compile time or runtime error?

This is a syntax error, which will be a compile time error.


Difference between run time error and run time exception in java?

Runtime Error Cannot be Rectified but Runtime Exception can.


What is the difference between runtime and compilation?

Compilation is generally the process of parsing the human-readable source code and turning it into machine-readable byte code. Runtime occurs during the execution of the byte code as a program. Examples: A compile-time error is an error that occurs while the source code is being turned into byte code. A runtime error is an error that occurs while the program is executing.


Is error and exception same?

Error: Any departure from the expected behavior of the system or program, which stops the working of the system is an error. Exception:Any error or problem which one can handle and continue to work normally. Note that in Java a compile time error is normally called an "error," while a runtime error is called an "exception." Errors don't have subclasses while exception has two subclasses, they are compile time exception or checked exception (ClassNotFound Exception, IOException, SQLException etc.) and runtime or unchecked exception(ArrayIndexOutOfBounds Exception, NumberFormat Exception).


What is the difference between compile-time error and the run-time error?

A run-time is an error that occurs when the program is executing (running). This is where segfaults and other horrible things happen. A compile-time error is an error that occurs when you are compiling the code. This is where code syntax and semantics are checked. You want errors to only occur here.


What kind of an error in c plus plus is dividing by zero?

The answer is in your own question. A divide by zero error is a divide or mod by zero type of error. In MSVC++ it has the error code C2124. Ultimately it is a fatal error and will either produce a compile time error or throw an unhandled exception at runtime.


What is Runtime Error?

In computer science, runtime or run time describes the operation of a computer program, the duration of its execution, from beginning to termination (compare compile time). The term is also used as a short form when referring to a runtime library (without a space), a program or library of basic code that is used by a particular computer language to manage a program written in that language while it is running. A runtime environment is a virtual machine state which provides software services for processes or programs while a computer is running. It may pertain to the operating system itself, or the software that runs beneath it.


Difference between syntax error and runtime error?

Syntax error can be found during compilation. Runtime error can be found only when you are trying to execute your program. Syntax errors are those which are caused by incorrect usage of the programming language. All programming language compilers are designed to detect and report such errors done by the programmer Runtime errors are those which are caused by incorrect usage of programming logic. for example a runtime divide method will throw a run time error if the divisor is '0' because numerically you cannot divide a number by 0


What is the difference between a semantic error and logic error?

An error in the logic of a program means that the output of the program is faulty (eg the program tell you 2+2=5). An error in semantics in a program means that the program statements are not constructed properly and the usual result of this is that the program will not compile.


What error is caught when the program execute?

runtime error