adspace


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

Answer Posted / Roshni Kumari

You can get an environment variable using the getenv() function in C and set it by using setenv(), unsetenv(), or putenv(). In shell scripts, you can use export to set variables and print them with echo.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you edit a large file without opening it in unix?

988