✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Predict the output of the program given here.
Assume that all the path names for the programs are correct. For example "/usr/bin/echo" will actually run echo command.
Assume that there is no mixing of printf output on screen if two of them run concurrently.
In the answer replace a new line by a single space.
For example::
good
output
should be written as good output
--
main() { int i; i = fork(); if(i == 0) execl("/usr/bin/echo", "/usr/bin/echo", "hi", 0); else wait(0); fork(); execl("/usr/bin/echo", "/usr/bin/echo", "one", 0);}
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!