When the rules of the programming language are not followed it gives ____…
2021
When the rules of the programming language are not followed it gives ____ errors.
- A.
Syntax
- B.
Logical
- C.
Run time
- D.
Printing
Attempted by 419 students.
Show answer & explanation
Correct answer: A
Every programming language has a set of grammatical rules called syntax.
If a programmer writes code that violates these rules, the compiler/interpreter generates a syntax error.
Example:
printf("Hello")Missing semicolon (;) causes a syntax error in C language.