Computer Science, asked by mohsinalisarfraz3, 6 months ago

what is a syntax error?​

Answers

Answered by Anonymous
2

Explanation:

The same kind of plants grown and cultivated on a large scale at a place is called

Answered by Anonymous
2

Answer:  In computer science, a syntax error is an error in the syntax of a sequence of characters or tokens that is intended to be written in compile-time. A program will not compile until all syntax errors are corrected. For interpreted languages, however, a syntax error may be detected during program execution, and an interpreter's error messages might not differentiate syntax errors from errors of other kinds.  There is some disagreement as to just what errors are "syntax errors". For example, some would say that the use of an uninitialized variable's value in Java code is a syntax error, but many others would disagree and would classify this as a (static) semantic error.  In 8-bit home computers that used BASIC interpreter as their primary user interface, the SYNTAX ERROR error message became somewhat notorious, as this was the response to any command or user input the interpreter could not parse.  A syntax error may also occur when an invalid equation is entered into a calculator. This can be caused, for instance, by opening brackets without closing them, or less commonly, entering several decimal points in one number. A compiler will flag a syntax error when given source code that does not meet the requirements of the language grammar.  Type errors (such as an attempt to apply the ++ increment operator to a Boolean variable in Java) and undeclared variable errors are sometimes considered to be syntax errors when they are detected at compile-time. However, it is common to classify such errors as (static) semantic errors instead. A syntax error is one of several types of errors on calculators (most commonly found on scientific calculators and graphing calculators), representing that the equation that has been input has incorrect syntax of numbers, operations and so on. It can result in various ways, including but not limited to:

An open bracket without closing parenthesis (unless missing closing parenthesis is at very end of equation)  Using minus sign instead of negative symbol (or vice versa), which are distinct on most scientific calculators. Note that while some scientific calculators allow a minus sign to stand in for a negative symbol, the reverse is less common.  Having missing numbers in an equation (e.g. "12×+5", missing a number between the × and + signs)  They are not to be confused with math errors (for example, when dividing by 0 or the equation resulting in too large of a number to be displayed). Most non-scientific calculators do not have distinction between different forms of errors (often shown by an E), mainly because there is less flexibility allowed in input (preventing syntax errors). Some calculators (particularly scientific calculators) also have other types of errors, such as stack errors.

Explanation: hope it will help you

please mark me as brainlist

Similar questions