Compiler can check___________?

  • A. Syntax Error
  • B. Logical Error
  • C. Both Logical and Syntax Error
  • D. None of these

Explanation

A compiler detects syntax errors because it checks whether program statements follow the language rules. Logical errors may produce validly compiled programs but incorrect results, so they usually require testing and debugging.

Related questions