What is the difference between syntax and semantic error ? How to know that the error is semantic or syntactic in C and C++ ? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

What is the difference between syntax and semantic error ? How to know that the error is semantic or syntactic in C and C++ ?

What are semantics... and that type of errors in compiler in C and C++

12th Feb 2018, 4:37 PM
DEEPANKAR BABU
DEEPANKAR BABU - avatar
1 Antwort
+ 3
Syntactical error occurs when syntax is violated x = y*z // semicolon missed And, semantical errors occurs when a line is illogical y*z = x; // opposite assignment
12th Feb 2018, 5:44 PM
777
777 - avatar