Question: Given the following two lines of code, which environment variables will the new process started by execve() have? v[0] = /bin/cat; v[1] = argv[1]; v[2]
Given the following two lines of code, which environment variables will the new process started by execve() have?
v[0] = "/bin/cat"; v[1] = argv[1]; v[2] = NULL;
execve(v[0], v, NULL);
A) No environment Variables
B)The environment variable ARGV1=/bin/cat
C) The environment variable ARGS=NULL
D) The environment variables of the parent process
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
