Computer Science, asked by jangaiahgoudch9073, 1 year ago

If a program contains logical errors, it will not be compiled? State whether the statement is True (or) False And Justify it

Answers

Answered by arpithaiboss
4
The code will compile with ease as the compiler has no brains to deal with logical errors like division by zero and all, although the execution of the code will be affected and potentially haulted .
Answered by StaceeLichtenstein
3

False is the correct answer to the given question.

Explanation:

  • If the program contains the logical error then the code is compiled successfully because the compile error is only occur when the code has syntax error in the program .
  • If there is logical error then there may be possibility that the exception will occur because the exception are the run time error in the program for example divide by zero  is the example of the logical error in the program.

Learn More :

  • brainly.in/question/8169627
Similar questions