among the following statement is correct? Statement 1: When the analyzer scans ‘int’ and ‘intvalue’, it is not able to decide whether the int leads to a keyword or an identifier. Statement 2: Longest Match Rule

among the following statement is correct? Statement 1: When the analyzer scans ‘int’ and ‘intvalue’, it is not able to decide whether the int leads to a keyword or an identifier. Statement 2: Longest Match Rule Correct Answer Statement 1 is assertion, Statement 2 is the solution

The Longest Match rule states that the lexeme scanned should be determined on the basis of longest match among all the token available.

Related Questions

Comment on the following 2 C programs.
#include  //Program 1int main(){ int a; int b; int c;}#include  //Program 2int main(){ int a; { int b; } { int c; }}