. 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 / bipin chandra sai.s
ans is none,bcoz b has been assigned address &[2],but it
has been asked that ans for b[-1],so the location -1 is not
there,we have locations from 0,1,2,3..,so none is the ans
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Are c and c++ the same?
Is exit(status) truly equivalent to returning the same status from main?
How can I recover the file name given an open stream or file descriptor?
How can you allocate arrays or structures bigger than 64K?
Explain what are header files and explain what are its uses in c programming?
Can a file other than a .h file be included with #include?
What are identifiers and keywords in c?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
What is storage class?
What are reserved words?
What the advantages of using Unions?
ATM machine and railway reservation class/object diagram
What does int main () mean?
Write a program to swap two numbers without using third variable?
What is unsigned int in c?