. 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 / harichandana
a[2] value is assigned to b i.e a[2] element value 6 is stored in b[0].now b[-1] means element before 6 i.e 3....thus b[-1] is 3
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Stimulate calculator using Switch-case-default statement for two numbers
What are the standard predefined macros?
Can you tell me how to check whether a linked list is circular?
please send me the code for multiplying sparse matrix using c
What is an array? What the different types of arrays in c?
Does * p ++ increment p or what it points to?
What is an auto variable in c?
What does char * * argv mean in c?
When was c language developed?
What are keywords c?
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
What are pointers? What are different types of pointers?
What is the purpose of macro in C language?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
What is chain pointer in c?