lexical error in 1xab...identifiers shouldnt start with digits..
hmm ohk sir..one more thing if an identifier or keyword is misspelled then also lexical analyser shouldnt create any problem as it just needs to create a token or there will be pattern matching as we would have already given regular expressions for identifiers and keywords etc?..i mean like itn a; it should be parsed by it na sir...because it dont know whether itn is a keyword or identifier....so it should create a token??
means except pattern matching of the identifiers lexical analyser cant give any error..rght sir?
It is a lexical error at earliest as we can see that the token "1xab" will be treated as an identifier ..But we know as per standard naming convention in C language , the variable name cannot begin with "1" ..
So it will be an invalid token..Hence the error concerned will be lexical error at the earliest..
Hence A) is correct answer..