. 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 / megh singh rana
HERE address of location a[2] assined to b .now b stre this
data in o location as b[0],so b[-1] is the value immediate
before b[0]( 6) is 3,thats why answer of b[-1] is 3,
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
What is the difference between pure virtual function and virtual function?
Is file a keyword in c?
What is a static variable in c?
What are the 5 elements of structure?
Why cant I open a file by its explicit path?
What is #include conio h?
Why do some versions of toupper act strangely if given an upper-case letter?
Lists the benefits of c programming language?
Why is void main used?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Why isnt there a numbered, multi-level break statement to break out
Where in memory are my variables stored?
Write a Program to find whether the given number or string is palindrome.
Difference between constant pointer and pointer to a constant.