. 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
Explain the use of bit fieild.
Explain what math functions are available for integers? For floating point?
Why do we use pointer to pointer in c?
What is wrong with this program statement? void = 10;
Explain how to reverse singly link list.
I have seen function declarations that look like this
write a program to copy the string using switch case?
Explain how does free() know explain how much memory to release?
Is c language still used?
Differentiate fundamental data types and derived data types in C.
What is #define used for in c?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
Can include files be nested? How many levels deep can include files be nested?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
Explain void pointer?