thanks to all for explanantions :)

On 12 June 2010 15:43, divya jain <[email protected]> wrote:

> one of my frnd askd me this question...
>
>
> On 11 June 2010 21:34, Raj N <[email protected]> wrote:
>
>> @kirubakaran: How can it be 1,1 ? No of characters read in a is 5+ 1 for
>> '\n' so its 6 and for the next one 1+1=2
>>
>>
>> On Fri, Jun 11, 2010 at 9:09 AM, kirubakaran 
>> <[email protected]>wrote:
>>
>>> Output will be
>>>
>>> 1,1
>>> bcoz printf returns number of characters or integers printed
>>>
>>> On Jun 11, 12:26 am, 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]<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]<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.

Reply via email to