. 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 / gagan
answer is 3
bcz b[0]=6 so b[-1]=3
Is This Answer Correct ? | 23 Yes | 6 No |
Post New Answer View All Answers
What does return 1 means in c?
In c language can we compile a program without main() function?
Can we add pointers together?
What is keyword in c?
What are the 5 elements of structure?
What is the use of #define preprocessor in c?
How can you increase the allowable number of simultaneously open files?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
When should a type cast not be used?
What is #define?
What is derived datatype in c?
What are terms in math?
What is the significance of an algorithm to C programming?
What is the use of printf() and scanf() functions?
What is the value of c?