it is working fine.... try it on any version of gcc or g++ compiler....

************ thread closed *************

On Sun, Aug 14, 2011 at 11:47 PM, siddharam suresh
<[email protected]>wrote:

> do somebody tried the redirecting the output to file???
> sometime results are unpredictable
> Thank you,
> Siddharam
>
>
>
> On Sun, Aug 14, 2011 at 11:25 PM, Yasir <[email protected]> wrote:
>
>> Check out second run of same code: http://ideone.com/TK4qu. This time it
>> printed only 8 times.
>>
>> The reason behind this is that, you are using a web based compiler and it
>> sends back the output as soon as main completes its execution. However
>> forked child are yet to complete.
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/algogeeks/-/TYDV9_VeO-QJ.
>>
>> 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.
>

-- 
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