The return value of printf is the number of characters it prints successfully. So the rightmost printf is going to return 2 (one for char c and one for new line), similarly second one returning 6.
Regards, Chetan. On 11 June 2010 00:56, divya <[email protected]> wrote: > #include <stdio.h> > main() > { > int a = 10000; > char b='c'; > int i,j; > > printf("%d,%d",printf("%d\n",a),printf("%c\n",b)); > > wat shd b the o/p of this..plzz explain y? > > -- > 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.
