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 |
what is pointer?
13 Answers HCL, TCS,
Explain the difference between fopen() and freopen().
Difference between Shallow copy and Deep copy?
What does main () mean in c?
Why we write conio h in c?
What is an arrays?
Can a variable be both static and volatile in c?
How pointers are declared?
Write a C program that defines a 2-dimentional integer array called A [50][50]. Then the elements of this array should randomly be initialized either to 1 or 0. The program should then print out all the elements in the diagonal (i.e. a[0][0], a[1][1],a[2][2], a[3][3], ……..a[49][49]). Finally, print out how many zeros and ones in the diagonal.
the output will be #include<stdio.h> int main () { int i; i = 9/2; printf("%i",i); return 0; }
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
Explain what are the standard predefined macros?