Programming (Year 12)

Define 'syntax error' and provide an example.

A syntax error occurs when the code does not conform to the rules of the programming language, such as a missing semicolon.