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. Lets 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. The 2 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. Lets 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!