. 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 / cvramana.reddy10
please answer it with reason..
| Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
Can you add pointers together? Why would you?
Is c compiled or interpreted?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
Why is c fast?
What is function definition in c?
What does == mean in texting?
How pointer is different from array?
What is FIFO?
Can you write a programmer for FACTORIAL using recursion?
What is the difference between the expression “++a” and “a++”?
How can a program be made to print the line number where an error occurs?
What is array within structure?
What do header files do?
How do I swap bytes?