Which of the following functions is used for handling environment variables of a process?

Thảo Justin

New member
Which of the following functions is used for handling environment variables of a process?
A. getenv
B. setenv
C. letenv
D. getenv and setenv
 
Answer: d
Explanation: Forking mechanism also transmits the parent’s environment to the child since environment variables are constituents of parent’s address space. POSIX specifies two functions getenv and setenv for handlings environment variables.
 

Tìm kiếm

Back
Top