1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
3241004551 [841]
3 years ago
15

Consider the following program:

Engineering
1 answer:
EleoNora [17]3 years ago
5 0

Answer:

The solution of this question is given below in explanation section.

Explanation:

The correct answer to this question is A i.e. 112002 .

the correct code of this question is given below

#include  <stdio.h>

#include  <string.h>

#include  <sys/types.h>

//#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 */

when you run this program, fork function print different values.

However, it is noted that when you run the program repeatedly, it will show you different values. But the most possible value that this program will show is A.

The picture is attached of the running program to get the idea of code.

You might be interested in
Are there engineering students here?​
leva [86]
Uh, I’d assume so because Brainly has a whole section of questions for them.
7 0
3 years ago
Read 2 more answers
Who is father of Engineer?
3241004551 [841]

John Smeatom, U.K. 18th century, was the first self-proclaimed, civil engineer in the 18th century and IS considered “the father of modern, civil engineering”.

hoped this helped! :)

4 0
3 years ago
Read 2 more answers
Convert mechanical energy into electric energy. What can he use?
Nina [5.8K]

Answer:

<h2>Generator </h2>

Explanation:

A generator converts mechanical energy into electrical energy

7 0
3 years ago
A certain heat pump produces 200 kW of heating for a 293 K heated zone while only using 75 kW of power and a heat source at 273
vodka [1.7K]

Answer:

COP(heat pump) = 2.66

COP(Theoretical maximum) = 14.65

Explanation:

Given:

Q(h) = 200 KW

W = 75 KW

Temperature (T1) = 293 K

Temperature (T2) = 273 K

Find:

COP(heat pump)

COP(Theoretical maximum)

Computation:

COP(heat pump) = Q(h) / W

COP(heat pump) = 200 / 75

COP(heat pump) = 2.66

COP(Theoretical maximum) = T1 / (T1 - T2)

COP(Theoretical maximum) = 293 / (293 - 273)

COP(Theoretical maximum) = 293 / 20

COP(Theoretical maximum) = 14.65

8 0
3 years ago
Type the correct answer in the box. Spell all words correctly.
AVprozaik [17]

Answer:

Mechanical engineer? Thats my guess I didnt have alot of options sorry if I am wrong

Explanation:

3 0
3 years ago
Other questions:
  • The idling engines of a landing turbojet produce forward thrust when operating in a normal manner, but they can produce reverse
    7·1 answer
  • A civil engineer is asked to design a curved section of roadway that meets the following conditions: With ice on the road, when
    13·1 answer
  • The benefit of using the generalized enthalpy departure chart prepared by using PR and TR as the parameters instead of P and T i
    6·1 answer
  • A 50 mol% mixture of propane (1) and n-butane (2) enters an isothermal flash drum at 37°C. If the flash drum is maintained at 0.
    12·1 answer
  • The value 100 MW is equivalent to (a) 100×10^6 w (b) 100 x 10^-6 w (c) 100 x 10^-3 w (d) 100 x 10^3 w
    14·1 answer
  • Find the dryness fraction, specific volume and internal energy of steam at 7bar nd enthalpy 2600kj/kh. (0.921,0.2515m³/kg , 2420
    5·1 answer
  • A magnesium oxide component must not fail when a tensile stress of 14 MPa is applied. Determine the maximum allowable surface cr
    8·1 answer
  • Drag each label to the correct location on the chart. Classify the organisms based on how they obtain food.
    14·2 answers
  • Define;<br>i) Voltage<br>ii) Current<br>iii) Electrical Power<br>iv) Electrical Energy​
    10·1 answer
  • Saferty precautions of drill press​
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!