Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2 . Exploring envp: a . Modify showEnvp.c so it reports envp addresses in the same style as showArgs 2 displays argv addresses. Save a

2. Exploring envp: a. Modify showEnvp.c so it reports envp addresses in the same style as showArgs2 displays argv addresses. Save a copy of the output in a file youll need to refer to it in part b. Provide a program listing, a status statement and 6-8 lines of output, but not all the output. (2) b. Inside your program use putenv to define one environment variable and setenv to redefine another. Do these values appear in the array envp or __environ or both? (2) c. Based on the program output sketch a data structure diagram for envp. You only need to include the first 3 environment variable values (2) Hand in a commented listing of your program, proof of testing and a status report. On your cover page, aside from your name, the course code, lab section and the assignment #. Make sure you include your student number. If I have to look it up to verify that you are doing the correct exercise -2 marks off. If you do the wrong exercise 2 more marks will be deducted showEnvp.c #include #include #include #include int main(int argc, char * argv[],char * envp[]) int i; fprintf(stdout,"My name is

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions

Question

1 Why is job analysis important?

Answered: 1 week ago