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 / bipin chandra sai.s

ans is none,bcoz b has been assigned address &[2],but it
has been asked that ans for b[-1],so the location -1 is not
there,we have locations from 0,1,2,3..,so none is the ans

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are c and c++ the same?

1064


Is exit(status) truly equivalent to returning the same status from main?

1078


How can I recover the file name given an open stream or file descriptor?

1086


How can you allocate arrays or structures bigger than 64K?

1157


Explain what are header files and explain what are its uses in c programming?

1162


Can a file other than a .h file be included with #include?

1168


What are identifiers and keywords in c?

1109


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

1278


What is storage class?

1087


What are reserved words?

1120


What the advantages of using Unions?

1236


ATM machine and railway reservation class/object diagram

5254


What does int main () mean?

1038


Write a program to swap two numbers without using third variable?

1318


What is unsigned int in c?

1011