#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

x=2,y=6,z=6 x=y==z; printf(%d",x)

13 Answers   Bharat, Cisco, HCL, TCS,


Can you explain the four storage classes in C?

0 Answers   TCS,


Is an array parameter is always "by reference" ?

1 Answers  


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

0 Answers  


Write a program for deleting duplicate elements in an array

3 Answers   Subex,






What is your favorite subject?

1 Answers   Ericsson, Invendis, Tech Mahindra,


Write a c program to Find the name that you entered is male name or female name? Such as Sunjay is name of male and Payal is name of female

5 Answers   Infosys, Luminous,


how to make program without <> in library.

1 Answers   ADITI,


What is the difference between union and structure in c?

0 Answers  


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

0 Answers  


What are the 4 types of unions?

0 Answers  


which is an algorithm for sorting in a growing Lexicographic order

0 Answers  


Categories