answersLogoWhite

0

A syntax error is when you break the grammar rules of the language, such as forgetting to terminate a C++ statement with a semi-colon.

A logical error is when your code does not perform as expected, typically due to an assumption that proves to be incorrect.

User Avatar

Wiki User

10y ago

Still curious? Ask our experts.

Chat with our AI personalities

BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa

Add your answer:

Earn +20 pts
Q: What is difference between syntx error and logical error?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic