Computer Science, asked by qnabrainly124, 1 month ago

Name the type of the error in the statement given below:
int r=100/0;

1. Syntax
2. Runtime
3. Logical
4. None of the above.​

Answers

Answered by bharatrathour260
7

Answer:

correct answer is 3 logical

Answered by sadafsiddqui
1

Logical error:-

In computer programming, a logic error is a bug in a program that causes it to operate incorrectly, but not to terminate abnormally. A logic error produces unintended or undesired output or other behaviour, although it may not immediately be recognized as such.

given,

int r=100/0;

hence, the correct option is (3) Logical.

Similar questions