Question

What is the difference between a logic error and a run time error?

What is the difference between a logic error and a run time error?

Homework Answers

Answer #1
Runtime error occurs while running the program.
It leads to stop the execution on the same line of the error.
Example:
1. When you read array out of its allocation
2. When you trying to do divided by zero

Logic is the incorrect operation with in code.
It does not cause the program to stop execution.
Example:
If we want to calculate sum of two variables a and b then we do it using a+b
But if you perform sum as a*b then it is the incorrect operation / logic error
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
What is the difference between short-run and long-run production time frame?
What is the difference between short-run and long-run production time frame?
12. What is the major difference between a SPLD (Simple Programmable Logic Device) and a CPLD...
12. What is the major difference between a SPLD (Simple Programmable Logic Device) and a CPLD (Complex Programmable Logic Device) ?
a) What is difference between a Type I error and a Type II error in detail?
a) What is difference between a Type I error and a Type II error in detail?
What is the difference between the standard deviation and the standard error? Is the standard error...
What is the difference between the standard deviation and the standard error? Is the standard error a standard deviation? Explain a real life example using a distribution histogram.
What is the difference between propagation of error and propagation of uncertainty. Or are they the...
What is the difference between propagation of error and propagation of uncertainty. Or are they the same thing?Please explain and what equations must I use.
1.  What is the difference between the short run and the long run? Explain the        Law of...
1.  What is the difference between the short run and the long run? Explain the        Law of Diminishing Marginal returns. 2.  Discuss the difference between the market demand curve of a purely      competitive industry and the demand curve confronted by an individual      firm in pure competition. 3.  What is a monopolist, and what is required for a monopolist to earn profits      in the long run? 4.  What does the demand curve facing a monopoly look like?Why? 5.  What is the Law of Diminishing Marginal Utility...
What is the difference between Type 1 and Type II error? How is Type I error...
What is the difference between Type 1 and Type II error? How is Type I error related to α? How is Type II error related to power?
Analyze the relationship between standard error and the difference between the means. A researcher examines the...
Analyze the relationship between standard error and the difference between the means. A researcher examines the results of two separate studies. In the first study, the difference between group a and group b is two points but the standard error is large and the difference is not significant. in the second study, the difference between group a and group b is also two points but the standard error is small and the difference is significant. What might be the reason...
Explain the difference between the mean square error and the standard error.
Explain the difference between the mean square error and the standard error.
Explain the difference between the “short run” and the “long run”. Be specific.
Explain the difference between the “short run” and the “long run”. Be specific.