On 9 August 2011 22:25, tech rascal <[email protected]> wrote: > explanation?? > > printf returns the no of characters printed moreover you have an uninitialized char (with garbage value) so comparison will always be false
> > On Tue, Aug 9, 2011 at 10:24 PM, aditi garg <[email protected]>wrote: > >> it doesnt matter >> >> On Tue, Aug 9, 2011 at 10:20 PM, 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; >>> } >>> >>> >>> 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. >>> >> >> >> >> -- >> Aditi Garg >> Undergraduate Student >> Electronics & Communication Divison >> NETAJI SUBHAS INSTITUTE OF TECHNOLOGY >> Sector 3, Dwarka >> New Delhi >> >> >> -- >> 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. >> > > -- > 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.
