804 views
1 votes
1 votes

Find no of tokens in following code:

#define square(x) x*x

int main(){
int a=square(2);
printf("%d", a);
return 0;
}

Does macro expansion effect  the  tokens  count??  

1 Answer

Related questions

0 votes
0 votes
1 answer
2
Vipin Rai asked Dec 12, 2018
623 views
int main(){ int a,b; a = 10; b = 11; printf(“%d %d”, a++,b );}The number of tokens is
1 votes
1 votes
0 answers
3
Aakash_ asked Nov 20, 2018
984 views
How many tokens are there ? int main(){char name={'A','A','K','A','S','H'};return 0;}Please give any reference if possible, my doubt is about the characters in the braces...
1 votes
1 votes
0 answers
4
goluabhinan asked Sep 16, 2018
4,303 views
Whether a given pattern constitutes a token or not(a) depends on the source language(b) depends on the target language(c) depends on the compiler(d) none of the above com...