Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

. 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


Please Help Members By Posting Answers For Below Questions

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

1230


What is the difference between pure virtual function and virtual function?

1093


Is file a keyword in c?

909


What is a static variable in c?

1087


What are the 5 elements of structure?

1060


Why cant I open a file by its explicit path?

1010


What is #include conio h?

980


Why do some versions of toupper act strangely if given an upper-case letter?

1057


Lists the benefits of c programming language?

1095


Why is void main used?

1061


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1192


Why isnt there a numbered, multi-level break statement to break out

1020


Where in memory are my variables stored?

1147


Write a Program to find whether the given number or string is palindrome.

1251


Difference between constant pointer and pointer to a constant.

1093