thanks..got it... On Mon, Aug 8, 2011 at 3:45 PM, jagrati verma <[email protected]>wrote:
> #define max(a,b)((a>b)?a:b) > > use parenthese thn it will giv the correct o/p > > On Mon, Aug 8, 2011 at 3:27 PM, Kamakshii Aggarwal > <[email protected]> wrote: > > #include <stdio.h> > > > > #define max(a,b)(a>b)?a:b > > int main() > > { > > int m,n; > > m=3+max(2,3); > > n=2*max(3,2); > > printf("%d,%d",m,n); > > getchar(); > > return 0; > > } > > y the o/p is 2,3,,please explain > > -- > > Regards, > > Kamakshi > > [email protected] > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Algorithm Geeks" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- Regards, Kamakshi [email protected] -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
