o/p:
It doesn't matter

Reason:
printf() returns the number of characters printed to screen.
since printf("") will return 0, hence the *else* is selected.

On 9 August 2011 22:25, siddharth srivastava <akssps...@gmail.com> wrote:

>
>
> On 9 August 2011 22:20, tech rascal <techrascal...@gmail.com> wrote:
>
>> #include<stdio.h>
>> int main()
>> {
>> char ch;
>> if((ch=printf("")))
>> printf("it matters");
>> else
>> printf("it doesn't matter");
>> return 0;
>> }
>>
>>
> It doesn't matter
>
>
>
>>
>> what will b the output??
>>
>> --
>> 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
> Siddharth Srivastava
>
>
>
>  --
> 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.
>



-- 
___________________________________________________________________________________________________________

Please do not print this e-mail until urgent requirement. Go Green!!
Save Papers <=> Save Trees

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