322 views

1 Answer

2 votes
2 votes
No there will be no lexical error beacause lexical analyzer will treat intmain as an identifier and will generate a token for it.

Related questions

0 votes
0 votes
2 answers
1
Mohit Aggarwal asked Dec 1, 2021
1,441 views
what is the difference between lexical error and syntax error?
6 votes
6 votes
7 answers
2
Na462 asked Oct 5, 2018
3,546 views
1 votes
1 votes
1 answer
3
Jason asked Mar 20, 2018
3,474 views
void main() { int total-value, Num=2,sum=5,var1; 5=Num; var1=2; sum=num*1; if(sum=var1) { sum=sum+1 } }Here, is $\text{"total-value"}$ a lexical error?
12 votes
12 votes
5 answers
4
Shubhanshu asked Jan 31, 2018
7,314 views
int main() { int 1a, b; Printf("\nGate 2018"); Printf("%d",x); }How many types of error are there in this code?