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

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 12:10, Ryantimes2
On a average work day more than work place firs are reorted
Answers: 1
image
Engineering, 04.07.2019 16:10, TheOriginalMeyah
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
Answers: 2
image
Engineering, 04.07.2019 18:10, winterblanco
The higher the astm grain-size number, the coarser the grain is. a)-true b)-false
Answers: 3
image
Engineering, 04.07.2019 18:10, genyjoannerubiera
Assuming compressible flow of air and that the measurements are done at flagstaff a pitot static tube that gives the difference of total and static pressure measures 0.35 m of mercury. what is the velocity of air? assume the temperature to be 300k. (submit your excel or matlab calculation sheet)
Answers: 1
You know the right answer?
Consider the following program:
Determine which of the following outputs are possible. Note: T...

Questions in other subjects:

Konu
English, 31.03.2021 17:10
Konu
History, 31.03.2021 17:10
Konu
Mathematics, 31.03.2021 17:10