. 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
Which is an example of a structural homology?
What is the use of #include in c?
What is the importance of c in your views?
How can I do graphics in c?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
How can I get back to the interactive keyboard if stdin is redirected?
Stimulate calculator using Switch-case-default statement for two numbers
Explain what is the benefit of using enum to declare a constant?
Explain what happens if you free a pointer twice?
Describe how arrays can be passed to a user defined function
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
Where are some collections of useful code fragments and examples?
What is the function of multilevel pointer in c?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
What is a built-in function in C?