Tuesday, 29 March 2016

Difference between Syntax and Semantic

Syntax Symantic
Syntax is related to language grammar, i.e. in C language every statement is terminated by semicolon (;) if you missed it, then compiler will generate a syntax error (statement is missing) Semantic is related to meaning which cannot be detected by the compiler. Wrong implementation of a logic will not produce expected output. For example, we know when the product of a number has to calculate then we must use (*) if by mistake or any other reason (+) are there then it is semantic bug.

Next Topic

No comments:

Post a Comment