ANSWERS: 2
  • Syntax involes things being organized in the right way (e.g., correct number of spaces or indentations, correct commas, semicolons, etc.) Logic errors mean that the source code is written correctly as far as the computer is concerned, it just simple isn't doing what you want it to. Generally, this means leaving out an important step or that kind of problem.
  • Correct: a = b + c; Syntax error: a = b ; c; //the compiler or interpreter will catch it Logic error: a = b - c; //perfectly acceptable, but wrong answer.

Copyright 2023, Wired Ivy, LLC

Answerbag | Terms of Service | Privacy Policy