0 votes 0 votes Find the line number in which lexical error present in the following program. 1.main() 2.{ 3.int x;y;z; 4./*comment1*/ 5./*com/*ment2*/end*/ 6.x="A"; 7.} Soumya Tiwari asked Nov 21, 2018 Soumya Tiwari 564 views answer comment Share Follow See all 6 Comments See all 6 6 Comments reply Show 3 previous comments Naveen Kumar 3 commented Nov 21, 2018 reply Follow Share yes.. /*com/*ment2*/ will be removed so, end*/ is invalid comment. 0 votes 0 votes Hemanth_13 commented Nov 21, 2018 reply Follow Share I think there won't be any validation done at lexical analysis phase it just removes extra white spaces and remove comments right 0 votes 0 votes Naveen Kumar 3 commented Nov 21, 2018 reply Follow Share if it removed /* ment2*/end */ then /*com is invalid token 0 votes 0 votes Please log in or register to add a comment.