this code is working fine,whether u have defined B or not and if you replace A with B in two macros it is still running well giving output 4 in each case
On Fri, Sep 10, 2010 at 9:59 AM, saurabh agrawal <saurabh...@gmail.com>wrote: > @umesh kewat > > #include<stdio.h> > int main(){ > int A =4; > > #define A B > #define B A > printf("%d",A); > return 0; > } > > This code works fine...but as you have explained the later A used in printf > statement must have replaced by B. In that case there must be a compiler > error "The identifier not defined". But this code compiless fine. and there > seems no visible effect of these two macros. > > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algoge...@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@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.