Question 9894 – Compiler-Design
February 13, 2024
Question 9827 – Compiler-Design
February 13, 2024
Question 9894 – Compiler-Design
February 13, 2024
Question 9827 – Compiler-Design
February 13, 2024

Question 9826 – Compiler-Design

The number of tokens in the following C statement.

printf("i = %d, &i = %x", i, &i); 

is

Correct Answer: C

Question 29 Explanation: 
We have six different types of tokens are available
(i) Keyword
(ii) Identifier
(iii) Constant
(iv) Variable
(v) String
(vi) Operator
Print = Token 1
( = Token 2
“i=%d%x” = Token 3 [Anything inside ” ” is one Token]
, = Token 4
i = Token 5
, = Token 6
& = Token 7
i = Token 8
) = Token 9
; = Token 10
Here, totally 10 Tokens are present in the equation.
A
3
B
26
C
10
D
21
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!