. 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 / sandip talukder
answer is(B). coz b holds d adrs ofa[2].so b[0]is 6. thats
why b[-1] is 3.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is default value of global variable in c?
Why double pointer is used in c?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
What is a constant and types of constants in c?
What is printf () in c?
How can you access memory located at a certain address?
How will you delete a node in DLL?
What is typedef?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
Is array a primitive data type in c?
What does the && operator do in a program code?
Explain what is dynamic data structure?
I need previous papers of CSC.......plz help out by posting them.......
What does volatile do?