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

Do pointers store the address of value or the actual value of a variable?

1063


Tell us the use of fflush() function in c language?

1131


Why do we use stdio h and conio h?

1065


How do I use void main?

1081


What is ponter?

1254


What is register variable in c language?

1017


How do I determine whether a character is numeric, alphabetic, and so on?

1115


What are qualifiers?

1027


What are the disadvantages of c language?

1171


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1203


Are pointers integer?

989


What Is The Difference Between Null And Void Pointer?

1224


What are bitwise shift operators in c programming?

1063


What is c standard library?

1183


What is a pointer value and address in c?

1107