. 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


Please Help Members By Posting Answers For Below Questions

Stimulate calculator using Switch-case-default statement for two numbers

2449


What are the standard predefined macros?

634


Can you tell me how to check whether a linked list is circular?

772


please send me the code for multiplying sparse matrix using c

1728


What is an array? What the different types of arrays in c?

661






Does * p ++ increment p or what it points to?

619


What is an auto variable in c?

758


What does char * * argv mean in c?

625


When was c language developed?

703


What are keywords c?

603


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

648


What are pointers? What are different types of pointers?

632


What is the purpose of macro in C language?

664


write a c program to calculate sum of digits till it reduces to a single digit using recursion

2721


What is chain pointer in c?

604