+ 1

what is syntax and semantics in c++?

2nd Aug 2017, 6:39 AM
MMN
MMN - avatar
2 Answers
+ 11
A programming language is a set of rules, symbols, and special words used to construct a program. In particular, there are rules for both syntax (grammar) and semantics (meaning). ... Syntax rules are the blueprints we use to build instructions in a program.
2nd Aug 2017, 6:58 AM
P R
P R - avatar
0
Any language, formal or not, is defined by three things: lexic, syntax and semantics. The former is about word correctness, the second is about phrase correctness and the later is about phrase meaning.
2nd Aug 2017, 12:49 PM
Denis Felipe
Denis Felipe - avatar