What refers to the grammatical rules to be followed while writing a program in any language
Answers
Answered by
11
Syntax refers to the grammatical rules to be followed while writing a program in any language.
Explanation:
Syntax
- Syntax refers, in linguistics, to the set of rules and processes controlling the sentence structure.
- It is the rules in programming that define the appropriate symbol and command combinations that make up a source program in a given language.
- If a user attempts to execute a command without a proper syntax, a syntax error is generated, usually causing the program to fail.
For example:
A missing semicolon written at the end of a statement in C programming can result in a syntax error.
Answered by
7
Answer:
syntax is the correct answer
Similar questions