The number of tokens in the following C statement. C printf("i = %d, &i = %x",…
2000
The number of tokens in the following C statement.
C
printf("i = %d, &i = %x", i, &i);
is
Answer: C. 10 — Token No. Token 1 printf 2 ( 3 "i = %d, &i = %x" 4 , 5 i 6 , 7 & 8 i 9 ) 10 ;
- A.
3
- B.
26
- C.
10
- D.
21
Attempted by 129 students.
Show answer & explanation
Correct answer: C
Token No. | Token |
|---|---|
1 | printf |
2 | ( |
3 | "i = %d, &i = %x" |
4 | , |
5 | i |
6 | , |
7 | & |
8 | i |
9 | ) |
10 | ; |
Explore the full course: Iocl Engineers Officers Grade A Paper 2
Loading lesson…