. 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


Please Help Members By Posting Answers For Below Questions

Explain the use of bit fieild.

708


Explain what math functions are available for integers? For floating point?

608


Why do we use pointer to pointer in c?

593


What is wrong with this program statement? void = 10;

816


Explain how to reverse singly link list.

603






I have seen function declarations that look like this

598


write a program to copy the string using switch case?

2397


Explain how does free() know explain how much memory to release?

569


Is c language still used?

533


Differentiate fundamental data types and derived data types in C.

608


What is #define used for in c?

609


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

609


Can include files be nested? How many levels deep can include files be nested?

653


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

627


Explain void pointer?

587