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 <[email protected]> wrote:

>
>
> On 9 August 2011 22:20, tech rascal <[email protected]> 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 [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
> 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 [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.
>



-- 
___________________________________________________________________________________________________________

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