0 votes 0 votes int a = 09; Will it generate lexical error ? Vipin Rai asked Dec 12, 2018 Vipin Rai 331 views answer comment Share Follow See 1 comment See all 1 1 comment reply aambazinga commented Dec 12, 2018 reply Follow Share yes. as constant starting with 0 is treated as octal number in C, and 9 is an invalid digit for octal representation. lexical error because it is related with the pattern of lexeme, not any syntax or semantics. 0 votes 0 votes Please log in or register to add a comment.