Multiple choice technology programming languages

2.) How can I get/set an environment variable from a program?

  1. a) getenv(), setenv()

  2. b) getenv(), putenv()

  3. c) readenv(), writeenv()

  4. d) You cannot environmement variables inside a program

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

getenv() retrieves environment variable values, while putenv() sets or modifies them. These are standard C library functions for environment variable manipulation. Options A uses setenv() which also exists but the question asks for the standard pair.