in Programming
571 views
2 votes
2 votes

What is the number of tokens in the below C code?

int foo(int i, int j){
    return printf(" I do it correctly", i > j);
}
in Programming
by
571 views

1 Answer

10 votes
10 votes
Best answer
1. int 
2. foo
3. (
4. int 
5. i
6. , 
7. int 
8. j
9. )
10. {
11. return 
12. printf
13. (
14. " I do it correctly"
15. , 
16. i 
17. > 
18. j
19. )
20. ;
21. }
selected by

2 Comments

is there any difference between tokens and lexemes ?
0
0
0
0
Answer:

Related questions