R
Ravi
#define JOIN(s1,s2) printf("%s = %s %s = %s",#s1,s1,#s2,s2)
What's "pls"? Please put your question in your message body.Ravi said:#define JOIN(s1,s2) printf("%s = %s %s = %s",#s1,s1,#s2,s2)
"]
#define JOIN(s1,s2) printf("%s = %s %s = %s",#s1,s1,#s2,s2)
[/QUOTE][/QUOTE]"]
#define JOIN(s1,s2) printf("%s = %s %s = %s",#s1,s1,#s2,s2)
Not quite. It would be:
printf("%s = %s %s = %s","str1",str1,"str2",str2)
Yes!
The most important difference is, of course, that your semicolon is
spurious.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.