p>q ? p : q ; i think it is that simple, otherwise i'm missing something.

On Sun, Jun 20, 2010 at 9:10 AM, anand verma <[email protected]>wrote:

> int max(int a,int b)
> {
>  int max;
>  (a/b)&&(max=a)||(max=b);
>  return max;
>
> }
>
>  --
> 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]<algogeeks%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Thanks,
Chakravarthi.

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

Reply via email to