10 as 3+2>2+8?3+2:2+8  5>10?5:10   ' + ' has more precedence then ?: as well
as > s o/p is 10..

correct me if i am wrong.

On Tue, Aug 23, 2011 at 12:50 AM, gmagog...@gmail.com
<gmagog...@gmail.com>wrote:

> output is 10 using gcc 4.5.2
>
> Yanan Cao
>
>
>
> On Mon, Aug 22, 2011 at 2:18 PM, sagar pareek <sagarpar...@gmail.com>wrote:
>
>> Yeah its o/p is 10 :)
>>
>>
>> On Tue, Aug 23, 2011 at 12:45 AM, Deepak Garg <deepakgarg...@gmail.com>wrote:
>>
>>> its output is
>>>
>>> 10
>>>
>>>
>>> On Tue, Aug 23, 2011 at 12:03 AM, rohit <rajuljain...@gmail.com> wrote:
>>>
>>>> #include<stdio.h>
>>>>
>>>> #define max(a,b) (a>b?a:b)
>>>>
>>>>
>>>> int main()
>>>> {
>>>>
>>>>  int j=max(3+2,2+8);
>>>>  printf("%d",j);
>>>>
>>>>    return 0;
>>>> }
>>>>
>>>>    why this program show output as 9 ? please help me!!!!
>>>>
>>>> --
>>>> 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.
>>>>
>>>>
>>>
>>>
>>> --
>>> U.D.I.T
>>>
>>> Sent by Nokia OVI (c)
>>>
>>>  --
>>> 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
>> SAGAR PAREEK
>> COMPUTER SCIENCE AND ENGINEERING
>> NIT ALLAHABAD
>>
>>  --
>> 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.
>

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