. Consider the following program
main()
{
int a[5]={1,3,6,7,0};
int *b;
b=&a[2];
}
The value of b[-1] is
(A) 1 (B) 3 (C) -6 (D) none
Answer Posted / veerendra
here b is an pointer. u r askng the value stored in a b's
array of -1....pointer may not be array here..
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is the difference between char array and char pointer?
What are identifiers in c?
what is ur strangth & weekness
What are file streams?
Are c and c++ the same?
how can f be used for both float and double arguments in printf? Are not they different types?
Explain the difference between malloc() and calloc() in c?
Can a variable be both static and volatile in c?
What are pointers in C? Give an example where to illustrate their significance.
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
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!+....
What is the difference between array and structure in c?
What is an auto variable in c?
What is 02d in c?
Who developed c language?