6 votes 6 votes Consider the following code $x = (y + 5) + (^*z) * 10 - x /3 $ Which of the following correctly identified by lexical analysis after scanning the above code? 5 Identifiers 3 literals 4 Identifiers 6 literals Compiler Design compiler-design lexical-analysis + – Mk Utkarsh asked Oct 22, 2018 Mk Utkarsh 1.9k views answer comment Share Follow See all 17 Comments See all 17 17 Comments reply Show 14 previous comments manisha11 commented Oct 22, 2018 reply Follow Share Thanks a lot! 0 votes 0 votes I_am_winner commented Oct 23, 2018 reply Follow Share what will be answer for this acc to me it is 3 identifier 3 literals 18 tokens please verify 0 votes 0 votes Sanandan commented Oct 3, 2020 reply Follow Share 3 literals , 3 identifiers 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes x=(y+5)+(∗z)∗10−x/3 Here, Identifiers are X, Y, Z. Literals are constant numbers 5, 10, 3. Wheras the rest are operators. So, answer is 3 Identifiers and 3 Literals. Refer this, https://www.cse.iitk.ac.in/users/karkare/cs335/lectures/04LexicalAanalysis.pdf muthu kumar answered Nov 11, 2018 muthu kumar comment Share Follow See all 0 reply Please log in or register to add a comment.