it doesn't matter On Tue, Aug 9, 2011 at 10:25 PM, 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; >> } >> >> > output wud be : It doesn't matter > reason: in the printf("") ---> this will return null character and assign it to ch and null character has ascii value 0 so statement reduces to if(0) rest u knw.. > > > >> >> 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. > -- 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.