Q. Differentiate between a syntax error and a semantics error.

 

Answer =

 

Syntax errors are the errors that occur when rules of a programming language are violated. While Semantics errors occur when statements are not meaningful.

 

Syntax refers to formal rules governing the construction of valid statements in a language. While semantics refers to the set of rules which give the meaning of a statement.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post