#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

say the following declaration is correct nr not. int b=a,n=0;

4 Answers   Wipro,


What is header file in c?

0 Answers  


wat is the output #define VOLEDEMORT _who_must_not_be_named int main() { printf("VOLEDEMORT"); }

2 Answers  


What will the preprocessor do for a program?

0 Answers   Aspire, Infogain,


What is malloc calloc and realloc in c?

0 Answers  


What is a rvalue?

0 Answers   Global Logic,


How can I read/write structures from/to data files?

0 Answers  


please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics

0 Answers  


write a program in c to find out the sum of digits of a number.but here is a condition that compiler sums the value from left to right....not right to left..

1 Answers  


Explain what are the __date__ and __time__ preprocessor commands?

0 Answers  


What is alloca() and why is its use discouraged?

1 Answers  


write c program without semicolon

11 Answers   MindTech, TCS, Wipro,


Categories