3rd December 2019

stackoverflow
14

What is the difference between syntax and semantics of a language?

Semantics is about whether or not the sentence has a valid meaning. Syntax refers to the structure of a language, tracing its etymology to how things are out together. On the other hand, the semantics is about meaning. A compiler or interpreter could complain about syntax errors.
Write Your Answer

Rate

86% people found this answer useful, click to cast your vote.

4.3 / 5 based on 3 votes.

Bookmark

Press Ctrl + D to add this site to your favorites!

Share