what is mean by runtime error in c and c++

Posted on 2010-01-12
Medium Priority
Last Modified: 2012-06-22
please give me an brief information about runtime error in c and c++
Question by:objectkk
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 11

Accepted Solution

ashraf882 earned 672 total points
ID: 26301244
Run time error is the error occurred at program execution time.
Like a=b/c;
If the value of c is 0 at run time, it will give a division by zero error.

Assisted Solution

nannemia earned 664 total points
ID: 26301340
Run-time errors in c & c++ because of Memory leak (improper use of dynamic memory allocation and free) or Arithmetic errors(divide by zero)
LVL 24

Assisted Solution

fridom earned 664 total points
ID: 26338565
One can't, there are too many possiblities, two are mentioned above. But what happens on any "reaction" of undefined behaviour? It may or may not give runtime exceptions. So what are the "implications "of one-off errors?
There may or may not be a problem with it. Nobody knows. What are the results of accessing some data-structures after a cast. May or may not result in runtime errors.

The only thing you can say about runtime errors.
- the occure during run-time
- and quite important they have passed through the compiler so you have no "compile-time" error.

A memory leak does not have an implication during runtime. Just if you get enough of them you will run out of memory, but in these days with 4 GB as "minimum" your program has to run quite a while, but in the case you have something like this

while(true) {
  mem = malloc(a_big_number);


Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question