. 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
What is the size of enum in c?
Can we declare a function inside a function in c?
What do you know about the use of bit field?
What are the types of assignment statements?
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
Is c is a procedural language?
Why calloc is better than malloc?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
Write a program for finding factorial of a number.
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
What is wild pointer in c?
What is the maximum length of an identifier?
Explain how can I prevent another program from modifying part of a file that I am modifying?
Can you add pointers together? Why would you?
Compare interpreters and compilers.