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

I think the answer is none
bcoz b is a pointer var so, it points to an ad location
the answer is not any of the given options

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are Structure passing and returning implemented by the complier?

1105


Write a code of a general series where the next element is the sum of last k terms.

986


What are header files why are they important?

1044


What is the purpose of void in c?

992


What are the types of variables in c?

978


What is a MAC Address?

1005


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

2136


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

994


What is function pointer c?

1032


What is difference between main and void main?

1117


Why do we use int main?

1043


Why calloc is better than malloc?

972


What is s in c?

997


What are the modifiers available in c programming language?

1174


can we have joblib in a proc ?

2231