Question: Note: plz just anwer my questions dont run the code i just need 3 to 4 lines answers of the questions. Question: Describe your observations

Note: plz just anwer my questions dont run the code i just need 3 to 4 lines answers of the questions.
Question: Describe your observations of the program and explain what you think is happening.?

Step 2. Change the invocation of execve() in Line to the following;

execve("/usr/bin/env", argv, environ);

Question: Describe your observations of the changed program.

Step 3. Question: Please draw your conclusion regarding how the new program gets its environment variables.

 Note: plz just anwer my questions dont run the code i

#include #include #include extern char **environ; int main() char *argv[2]; argv[0] - "/usr/bin/env"; = NULL; argv[1] execve("/usr/bin/env", argv, NULL); return 0; Code Listing 2: Print out environment variables using execve() Question: Describe your observations of the program and explain what you think is happening. Step 2. Change the invocation of execve () in Line to the following; execve("/usr/bin/env", argv, environ); Question: Describe your observations of the changed program. Step 3. Question: Please draw your conclusion regarding how the new program gets its environment variables

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!