thanks..got it...

On Mon, Aug 8, 2011 at 3:45 PM, jagrati verma
<jagrativermamn...@gmail.com>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
> <kamakshi...@gmail.com> 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
> > kamakshi...@gmail.com
> >
> > --
> > 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.
> >
>
> --
> 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.
>
>


-- 
Regards,
Kamakshi
kamakshi...@gmail.com

-- 
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.

Reply via email to