Question: 1) Write a complete C or C++ program to print Hello World Greetings. 2) Using the command line, compile and generate the executable for the

1) Write a complete C or C++ program to print Hello World Greetings. 2) Using the command line, compile and generate the executable for the above program. Let's call helloWorld the target executable. 3) Write a C program that does the following: a) forks a child to execute helloWorld b) waits for the child execution to end 4) Reuse the above program to try a different variant of exec family of system calls OPTIONAL: 1) write a program main that takes two operands, computes their sum, and prints the results. The2 operands are given as arguments in the command line. A typical execution looks like: /main 5 7 12 2) Using the command line, compile and generate the executable for the above program. Let's call main the target executable. 3) Write a C program that does the following: a) forks a child to execute main; recall that main takes two operands b) waits for the child execution to end 4) Reuse the above program to try a different variant of exec family of system calls
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
