Computer Science, asked by arulmozhi4934, 1 year ago

What are Semantic errors in a programming language?

Answers

Answered by amankumaraman11
1
Hey There! A semantic error is a violation of the rules of meaning of a natural language or a programming language. These are invalid code the compiler doesn't understand, e.g. your example of multiplying a string with an integer in C. The compiler will detect them, because it can't compile them. These are valid code the compiler understands, but they do not what you, the programmer, intended.
Answered by rashidkhna73
0

Answer:

In Artificial Intelligence, Semantic analysis is understanding and analyzing the languages based on the meaning and context like humans. ... In simple words, semantic analysis is used to understand the meaning of the sentence according to the context

Similar questions