A run time error is an error that occurs when your program is executing, after it has been compiled and linked.
All runtime errors can be classified as intent errors, or be chalked up to weak typing.
Disclaimer:
Beware: Studies have shown that research causes cancer in lab rats.
A runtime error can be defined as a system generated signal that occurs due to bad programming.
Some common examples of runtime errors are
accessing an array beyond its size, trying to dereference a NULL pointer, division by zero, memory access violations(accessing memory that is not allocated, that cant be accessed etc).
Some of the commong signals that are generated during
run-time exceptions are here...
Bus error (SIGBUS)
Segmentation Violation(SIGSEGV)
Floating point violation(SIGFPE)
Abnormal Termination((This is the final result of
some or any of the above errors) SIGABRT)
On Unices one can expciltly see what error occured
because the program normally prints out the error to the console
Something like...
$a.out
a.out : Bus Error (Killed)
But on Windows machines this kind of diagnostics are not written specifically.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.