in Compiler Design retagged by
5,286 views
0 votes
0 votes

Question:

Find the number of tokens in the following C code using lexical analyzer of the compiler.

in Compiler Design retagged by
5.3k views

4 Comments

34 tokens
2
2
yes 34 is the answer, but you u counted &S as 1 token ?
0
0
No. They are separate tokens
2
2
ya, I got it.
thanks
0
0

1 Answer

2 votes
2 votes
i got 34 number of token

main

(

)

{

int

*

u

,

*

v

,

s

;

u

=

&

s

;

v

=

&

s

;

printf

(

“…….”

,

s

,

*

u

)

;

}

1 comment

Arrey bro coorect hai
0
0