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

 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

2154


What is the difference between local variable and global variable in c?

1161


Why should I use standard library functions instead of writing my own?

1204


Are there constructors in c?

969


Why is python slower than c?

1020


What does it mean when a pointer is used in an if statement?

1060


What is c++ used for today?

1060


What is the value of uninitialized variable in c?

976


What is LINKED LIST? How can you access the last element in a linked list?

1018


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

2077


What is header file in c?

1019


What are the types of operators in c?

1001


How can a string be converted to a number?

963


Explain what are bus errors, memory faults, and core dumps?

1222


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1476