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

a[2] value is assigned to b i.e a[2] element value 6 is stored in b[0].now b[-1] means element before 6 i.e 3....thus b[-1] is 3

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use visual studio for c?

1099


Is c# a good language?

1015


Compare array data type to pointer data type

1037


What are the advantages of Macro over function?

2027


Why do we use c for the speed of light?

1214


What's the best way of making my program efficient?

1110


Explain why C language is procedural?

1226


Why is python slower than c?

1090


while initialization of array why we use a[][2] why not a[2][]...?

2365


How can I write a function that takes a format string and a variable number of arguments?

1058


how to construct a simulator keeping the logical boolean gates in c

2261


Why is c faster?

1109


What is a null string in c?

1046


Which is more efficient, a switch statement or an if else chain?

1027


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

2390