0 votes 0 votes Question: Find the number of tokens in the following C code using lexical analyzer of the compiler. Compiler Design compiler-design lexical-analysis compiler-tokenization numerical-answers + – syncronizing asked Sep 21, 2018 • retagged Jul 2, 2022 by Lakshman Bhaiya syncronizing 5.4k views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply Sayan Bose commented Sep 21, 2018 reply Follow Share 34 tokens 2 votes 2 votes syncronizing commented Sep 22, 2018 reply Follow Share yes 34 is the answer, but you u counted &S as 1 token ? 0 votes 0 votes Sayan Bose commented Sep 22, 2018 reply Follow Share No. They are separate tokens 2 votes 2 votes syncronizing commented Sep 22, 2018 reply Follow Share ya, I got it. thanks 0 votes 0 votes Please log in or register to add a comment.
2 votes 2 votes i got 34 number of token main ( ) { int * u , * v , s ; u = & s ; v = & s ; printf ( “…….” , s , * u ) ; } Himanshu Kumar Gupta answered Sep 12, 2020 Himanshu Kumar Gupta comment Share Follow See 1 comment See all 1 1 comment reply anay commented Feb 6, 2021 reply Follow Share Arrey bro coorect hai 0 votes 0 votes Please log in or register to add a comment.