subject

Consider the following C program parent. c (compiled to executable parent): #include extern char** environ; int main(int argc, char** argv) { argv[0] = "child"; execve("child", argv, environ); return 0; } Also, consider the following C program child. c (compiled to executable child): #include #include int main(int argc, char** argv) { int i; for(i = 0; i < argc; i++) printf("%s ", argv[i]); printf("%d", getpid()); return 0; } Suppose that we run the parent program with this command: ./parent bird cat dog Also, suppose that we use ps while the program is running to determine that the PID of parent in execution is 24712. Exactly what is printed?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:30
What is the digital revolution and how did it change society? what are the benefits of digital media?
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
On early television stations, what typically filled the screen from around 11pm until 6am? test dummies test patterns tests testing colors
Answers: 1
question
Computers and Technology, 24.06.2019 04:10
Write a program that reads a set of floating-point values. ask the user to enter the values, then print • the average of the values. • the smallest of the values. • the largest of the values. • the range, that is the difference between the smallest and largest. of course, you may only prompt for the values once.
Answers: 3
question
Computers and Technology, 24.06.2019 17:00
What are some examples of what can be changed through options available in the font dialog box? check all that apply. font family italicizing bolding pasting drop shadow cutting character spacing special symbols
Answers: 2
You know the right answer?
Consider the following C program parent. c (compiled to executable parent): #include extern char** e...
Questions
question
Mathematics, 07.01.2020 08:31
question
Physics, 07.01.2020 08:31
question
Mathematics, 07.01.2020 08:31
question
Mathematics, 07.01.2020 08:31
question
Mathematics, 07.01.2020 08:31
Questions on the website: 13722367