E
Emilio
Hi,
I was reading the faqs from c-faq.com and on the C Preprocesor Section
in question 10.27 there is a piece of code:
printf("DEBUG: \"%s\", line %d: ",
__FILE__,__LINE__),printf("i is %d", i);
That I quite don't understand. Whats the comma for?. I thought it
should be changed for a ;
I tried it in a program and it that prints out
DEBUG: "main.c", line 10: i is 3
giving i the value 3. In this case it gives the same output if the
comma was changed for a ;.
I don't understand what it is used for how how it works.
TIA
I was reading the faqs from c-faq.com and on the C Preprocesor Section
in question 10.27 there is a piece of code:
printf("DEBUG: \"%s\", line %d: ",
__FILE__,__LINE__),printf("i is %d", i);
That I quite don't understand. Whats the comma for?. I thought it
should be changed for a ;
I tried it in a program and it that prints out
DEBUG: "main.c", line 10: i is 3
giving i the value 3. In this case it gives the same output if the
comma was changed for a ;.
I don't understand what it is used for how how it works.
TIA