every printf statement wll return how many number of parameter/variable print r printed so 2nd nested wll print number 1 n remaing two printf statement wll print number of parameters are printed so total three 1's .....:)
-- Prashant Kulkarni || Lokaha Samastaha Sukhino Bhavanthu || || Sarve Jana Sukhino Bhavanthu || On Thu, Jul 29, 2010 at 2:16 PM, tarak mehta <[email protected]> wrote: > #include<stdio.h> > int main() > { > int i=1; > printf("%d\n",printf("%d",printf("%d",i))); return 0; > } > > > output is 111..i was expecting it to be 11..plz explain?? > > -- > 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]<algogeeks%[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.
