1 votes 1 votes Conisder the following program: Main() { int x = 10; If (x<20 ; Else y = 20; } When lexical analyzer scanning the above program, how many lexical errors can be produced? Compiler Design compiler-design lexical-analysis syntax-directed-translation + – lovish_bhatia asked Sep 12, 2023 lovish_bhatia 380 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes I think since c is case sensitive Main and Else will give lexical error. Hence 2 lexical error. geeks_god answered Nov 9, 2023 geeks_god comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes 6 lexical errors 4 { brackets one misplaced semicolon and 1 missing first bracket. Uryu Ishida answered Sep 12, 2023 Uryu Ishida comment Share Follow See 1 comment See all 1 1 comment reply geeks_god commented Nov 9, 2023 reply Follow Share No Lexical error due to misplaced semicolon and missing bracket. 1 votes 1 votes Please log in or register to add a comment.