subject
Engineering, 14.03.2020 05:01 daedae96

Consider the following program:
Determine which of the following outputs are possible. Note: The atexit function takes a pointer to a function and adds it to a list of functions (initially empty) that will be called when the exit function is called.

/* $begin forkprob2 */

#include "csapp. h"

void end(void)
{

printf("2");

}

int main()
{

if (Fork() == 0)

atexit(end);

if (Fork() == 0)

printf("0");

else

printf("1");

exit(0);
}

/* $end forkprob2 */

A. 112002 B. 211020 C. 102120 D. 122001 E. 100212

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 16:10
The force on a cutting tool are 2600n vertically downward and 2100 horizontal. determine the resultant force acting on the tool and the angle at which it acts.
Answers: 1
question
Engineering, 04.07.2019 18:10
Hydraulic fluid with a sg. of 0.78 is flowing through a 1.5 in. i.d. pipe at 58 gal/min. the fluid has an absolute viscosity of 11.8 x 105 lbf-sec/ft2. is the flow laminar, turbulent or within the critical range? give both a numerical reynolds number and a term answer.
Answers: 3
question
Engineering, 04.07.2019 18:20
Ahe-xe mixture containing a 0.75 mole fraction of helium is used for cooling electronics in an avionics application. at a temperature of 300 k and atmospheric pressure, calculate the mass fraction of helium and the mass density, molar concentration and molecular weight of the mixture. if the cooling capacity is 10 l, what is the mass of the coolant?
Answers: 3
question
Engineering, 04.07.2019 19:10
Analyze the factors that influence the choice between the following pairs of processes to make the products indicated: i) sand casting versus die casting of an electric-motor housing ii) thread rolling versus machining of a bolt for high-strength application. (co3/c5)
Answers: 3
You know the right answer?
Consider the following program:
Determine which of the following outputs are possible. Note: T...
Questions
question
History, 19.10.2019 06:00
question
Arts, 19.10.2019 06:00
question
Geography, 19.10.2019 06:00
question
History, 19.10.2019 06:00