. 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 / megh singh rana
HERE address of location a[2] assined to b .now b stre this
data in o location as b[0],so b[-1] is the value immediate
before b[0]( 6) is 3,thats why answer of b[-1] is 3,
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
swap 2 numbers without using third variable?
Is c easier than java?
What is the difference between int main and void main?
Explain what math functions are available for integers? For floating point?
Can variables be declared anywhere in c?
What is the difference between #include and #include 'file' ?
What is merge sort in c?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
Linked lists -- can you tell me how to check whether a linked list is circular?
What extern c means?
Explain what is page thrashing?
What is an auto keyword in c?
What is table lookup in c?
how to construct a simulator keeping the logical boolean gates in c
What should malloc(0) do?