Re: [algogeeks] Explain the code

2012-03-20 Thread siddharam suresh
output is: 12(12 white spaces before 12) Thank you, Sid. phone:+91-8971070727, +91-9916809982 On Tue, Mar 20, 2012 at 5:30 PM, rahul wrote: > I thought it print 12 because 2 is printed by insider printf ( because of > 2 string) and 1 is printed by outsider printf( 1 print) statemen

Re: [algogeeks] Explain the code

2012-03-20 Thread rahul
I thought it print 12 because 2 is printed by insider printf ( because of 2 string) and 1 is printed by outsider printf( 1 print) statement, how come sum of two strings came into picture. On Tue, Mar 20, 2012 at 1:42 PM, Amit Kumar wrote: > @sajal > I mean the same. > > > > > Warm Regards > Ami

Re: [algogeeks] Explain the code

2012-03-20 Thread Amit Kumar
@sajal I mean the same. Warm Regards Amit Kumar Master Of Computer Applications University Of Delhi -- 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 g

Re: [algogeeks] Explain the code

2012-03-20 Thread Sajal Choudhary
@amit: *1. **printf *returns the length of the string it outputs. i.e. printf("%d",printf("abcd")) ==> will give 4 as output. 2. Also in printf("%*s) , %**s *tells to read the precision field from the next argument provided in printf(). Here *printf("%*s%*s",a,"",b,"") *is equivalent to* printf(