@Divya o/p
c ----> prints b 10000 -----> prints a 6, 2 -------> printf returns no of characters printed. 6=5 (length of a) + 1 (for \n) 2=1 (length of b) + 1 (for \n) Hope it's clear Mohit Ranjan On Fri, Jun 11, 2010 at 12:56 AM, divya <sweetdivya....@gmail.com> 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 algoge...@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@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 algoge...@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.