. 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
where are auto variables stored? What are the characteristics of an auto variable?
How do you view the path?
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......
Why pointers are used in c?
Combinations of fibanocci prime series
How do I copy files?
Can we declare variables anywhere in c?
Place the #include statement must be written in the program?
What is static and auto variables in c?
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"
What are derived data types in c?
How can I make it pause before closing the program output window?
What is difference between class and structure?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
Can a variable be both static and volatile in c?