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 / 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

how logic is used

2027


Explain how can a program be made to print the line number where an error occurs?

1284


What is double pointer?

1045


What is the purpose of clrscr () printf () and getch ()?

1114


Difference between linking and loading?

1157


What are the ways to a null pointer can use in c programming language?

1197


Differentiate between a structure and a union.

1335


Explain the Difference between the New and Malloc keyword.

1193


what are bit fields? What is the use of bit fields in a structure declaration?

2208


How many keywords are there in c?

1126


What is meant by gets in c?

1268


What is #define size in c?

1271


Do you have any idea how to compare array with pointer in c?

1097


What is calloc in c?

1192


What is data structure in c programming?

1134