Professional Documents
Culture Documents
Discussion Forum Notes and Questions
Discussion Forum Notes and Questions
Answer: The syntax of a language is its grammar, and the semantics is its
semantic error can be compiled and run, but gives an incorrect result. A missing
find the error and report it. If N is an integer variable, then the statement "frac =
1/N;" is probably an error of semantics. The value of 1/N will be 0 for any N greater
name. The box holds a value of some specified type. A variable declaration
int x;
which creates the variable x. When the computer executes a variable declaration, it
creates the box in memory and associates a name (in this case, x) with that box.