(e) Name the type of error in the statement given below:
int r=100/0;
Syntax
Runtime
Logical
None of the above
Answers
Answered by
17
Answer:
answer is Logical error.
Answered by
0
"Runtime Error occurs in the statement int r=100/0;".
Explanation :
The given statement causes a runtime error.
A runtime error in a program occurs while the program is running after being successfully compiled. Runtime errors are commonly called referred to as bugs.
Syntax errors are missing a comma or a quotation mark, or misspelling a keyword in syntax.
Logical errors occur when there is a defect in the logic of the problem. Logic errors do not usually cause a program to crash.
Similar questions