. 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

where are auto variables stored? What are the characteristics of an auto variable?

588


How do you view the path?

661


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

1402


Why pointers are used in c?

580


Combinations of fibanocci prime series

1108






How do I copy files?

619


Can we declare variables anywhere in c?

575


Place the #include statement must be written in the program?

567


What is static and auto variables in c?

563


Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"

1580


What are derived data types in c?

606


How can I make it pause before closing the program output window?

575


What is difference between class and structure?

568


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

606


Can a variable be both static and volatile in c?

604