Computer Science, asked by jashuabca03, 9 months ago

Syntax error occurs when

a)  The rules of grammar of the programming language is violated

 

b) The statements in the program have no meaning

 

c)  The program gives wrong or undesired output

 

d)  Some illegal operation(e.g. divide by zero) is done

Answers

Answered by luckyusha1994
4

Answer:

some illegal operations

Answered by Anonymous
2

A syntax error occurs when:

a) The rules of grammar of the programming language are violated

  • A syntax error occurs in the source code of a program.
  • This error appears when a program does not follow the grammar of a programming language.
  • An example of this kind of error is a missing semicolon at the end of the line of code.
  • The presence of unpaired brackets in the code also causes a syntax error.

Similar questions