||12-11-2012 09:23 AM
The tokens 'ox2' and '0x2' are interpreted by the compiler in completely distinct ways. The compiler sees any token beginning with the characters '0x' to be an integer constant value expressed in hexadecimal notation. Variables must have alpha characters as the first character in their name, and the token 'ox2' is interpreted as a variable name, just like the token 'x' that you have already used. Since that variable has not been declared, the compiler doesn't know about the type of the variable, and makes the accordant complaint.