How to set a variable in the environment list?



How to set a variable in the environment list?..

Answer / d g patel

environment variables can be get and set by getenv() and
putenv() calls in C.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More C Interview Questions

What are the types of arrays in c?

0 Answers  


which is faster execution: loops or recursion?

3 Answers  


What are inbuilt functions in c?

0 Answers  


nic scientist exam

1 Answers   NIC,


Why & is used in scanf in c?

0 Answers  


What is the use of getch ()?

0 Answers  


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

0 Answers   Wilco,


Q-1: Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college.

8 Answers  


main() { int a=5; printf(?%d,%d,%d\n?,a,a< <2,a>>2); } Answer: 5,20,1 please explain this code in detail

6 Answers   TCS,


Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

0 Answers  


Define macros.

0 Answers   Tech Mahindra,


What are the different types of constants?

0 Answers  


Categories