Ask your own question, for FREE!
Computer Science 13 Online
OpenStudy (anonymous):

A program can fail in two different times, the first time is during compile, the second is during execution. Explain how these errors differ. I understand the first part of why a program fails during compile - because there is an error in the code. However, I'm unsure why the program fails during execution.

OpenStudy (rsmith6559):

Failure doesn't have to mean that the program crashes. It could be a logical error, say when you add 2 + 2 it gives you 5.

OpenStudy (espex):

A program might fail during execution when it accesses memory that is outside of its sandbox. A program may also fail if there is an error that is not handled properly, like a divide by zero error.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!