Multiple choice technology operating systems

10 How can I get/set an environment variable from a program?

  1. 1 getenv(), setenv()

  2. 2 getenv(), putenv()

  3. 3 readenv(), writeenv()

  4. 4 You cannot environmement variables inside a program

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

getenv() retrieves the value of an environment variable, and putenv() changes or adds an environment variable to the current environment. setenv() is not part of standard C (though it exists as a BSD/gnu extension), and readenv()/writeenv() do not exist.