#include <stdio.h>
int main() {
int i;
for (i=0;i<3;++i) {
fork();fork();
}
}
How many processes are created when running this program
(including the initial one)?
Explain &#1567;&#1567;&#1567;

Answers were Sorted based on User's Feedback



#include <stdio.h> int main() { int i; for (i=0;i<3;++i) { fork();fork(); } } How ma..

Answer / bikash

3

Is This Answer Correct ?    0 Yes 0 No

#include <stdio.h> int main() { int i; for (i=0;i<3;++i) { fork();fork(); } } How ma..

Answer / aman goyal

127
64+32+16+8+4+2+1

Is This Answer Correct ?    0 Yes 0 No

#include <stdio.h> int main() { int i; for (i=0;i<3;++i) { fork();fork(); } } How ma..

Answer / neelankshi

7

Is This Answer Correct ?    0 Yes 2 No

#include <stdio.h> int main() { int i; for (i=0;i<3;++i) { fork();fork(); } } How ma..

Answer / govind verma

5 process will create..........

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

why do some people write if(0 == x) instead of if(x == 0)?

0 Answers  


write a program in c to read array check element is present or not?

1 Answers  


Print all numbers which has a certain digit in a certain position eg: number=45687 1 number=4 2 number=5 etc

4 Answers  


Does c have function or method?

0 Answers  


What is a pointer value and address in c?

0 Answers  


how to print value of e(exp1)up to required no of digits after decimal?

1 Answers  


What is RAM memory? and What is ROM?Who designed one is temparary and another is permanent?why they designed like that?By using far pointer which type data(whether hexadecimal)we can access?

1 Answers   Excel,


What's the best way of making my program efficient?

0 Answers   Celstream,


Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

0 Answers   Wipro,


int j =15,i; for (i=1; 1<5; ++i) {printf ("%d%d ",j,i); j = j-3; }

2 Answers  


Why should I use standard library functions instead of writing my own?

0 Answers  


Which programming language is best for getting job 2020?

0 Answers  


Categories