I dnt think thr wud be a definite ans....

On Mon, Aug 8, 2011 at 11:26 PM, siddharam suresh
<siddharam....@gmail.com>wrote:

> is it 3 ?
> Thank you,
> Siddharam
>
>
>
> On Mon, Aug 8, 2011 at 11:24 PM, rajul jain <rajuljain...@gmail.com>wrote:
>
>> How many Children process following program produce
>> *
>> void main() {
>>
>>         int p1= fork();
>>
>>         if (p1 == 0) {
>>
>>              int p2 = fork();
>>
>>              if (p2 != 0) {
>>
>>                   fork();
>>
>>              }
>>
>>         }
>>
>> }
>>
>>
>> *
>> On Mon, Aug 8, 2011 at 11:11 AM, Kamakshii Aggarwal <
>> kamakshi...@gmail.com> wrote:
>>
>>> what will be the o/p of the following program:
>>>
>>> main()
>>> {
>>> int ret;
>>> ret=fork();
>>> ret=fork();
>>> ret=fork();
>>> ret=fork();
>>>
>>> if(!ret)
>>> printf("one");
>>> else
>>> printf("two");
>>> }
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Regards,
>>> Kamakshi
>>> kamakshi...@gmail.com
>>>
>>> --
>>> 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 group, send email to
>>> algogeeks+unsubscr...@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 algogeeks@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.
>>
>
>  --
> 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 group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Aditi Garg
Undergraduate Student
Electronics & Communication Divison
NETAJI SUBHAS INSTITUTE OF TECHNOLOGY
Sector 3, Dwarka
New 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 group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to