thx pratik On Sat, Apr 9, 2011 at 8:13 PM, Pratik Kathalkar <dancewithpra...@gmail.com>wrote:
> u can see the pre-processed file using gcc -E prog_name.c and @ > bottom u can see what actually the code is doing. > > > On Tue, Apr 5, 2011 at 12:45 PM, Arvind <akk5...@gmail.com> wrote: > >> #include<stdio.h> >> >> #define f(a,b) a##b >> #define g(a) #a >> #define h(a) g(a) >> >> int main() >> { >> printf("%s",g(f(1,2))); >> printf("\t%s",h(f(1,2))); >> return 0; >> } >> >> >> >> i have run this program in gcc compiler and getting : f(1,2) 12 as >> output. >> can anyone explain the reason for getting this output? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to algogeeks@googlegroups.com. >> To unsubscribe from this group, send email to >> algogeeks+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> >> > > > -- > Pratik Kathalkar > CoEP > BTech IT > 8149198343 > > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Arpit Bhatnagar (MNIT JAIPUR) -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.