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

main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1560


What is the difference between exit() and _exit() function in c?

1078


What is the maximum no. of arguments that can be given in a command line in C.?

1154


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

1396


what is the format specifier for printing a pointer value?

1025


What are compound statements?

1179


Is there anything like an ifdef for typedefs?

1154


Write a program to reverse a string.

1086


What is ## preprocessor operator in c?

1093


What is the right type to use for boolean values in c? Is there a standard type?

1018


How can I automatically locate a programs configuration files in the same directory as the executable?

1175


Why header files are used?

1118


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1222


What is context in c?

924


A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?

2318