What can create a lexical error in C?
问题 Besides not closing a comment /*... , what constitutes a lexical error in C? 回答1: Here are some: "abc<EOF> where EOF is the end of the file. In fact, EOF in the middle of many lexemes should produce errors: 0x<EOF> I assume that using bad escapes in strings is illegal: "ab\qcd" Probably trouble with floating point exponents 1e+% Arguably, you shouldn't have stuff at the end of a preprocessor directive: #if x % 回答2: Basically anything that is not conforming to ISO C 9899/1999, Annex A.1