English, asked by rosemaryhaufiku5, 7 months ago

Distinguish between syntax and semantics

Answers

Answered by ananya31838
2

Answer:

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 put together. ... On the other hand, the semantics is about meaning. A compiler or interpreter could complain about syntax errors.

Explanation:

Hope it helps you

Answered by RawatPahadi
1

Answer:

Syntax is about the structure or the grammar of the language. It answers the question: how do I construct a valid sentence? All languages, even English and other human (aka "natural") languages have grammars, that is, rules that define whether or not the sentence is properly constructed.

Semantics term in a programming language is used to figure out the relationship among the syntax and the model of computation.

Similar questions