. 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 / bipin chandra sai.s
ans is none,bcoz b has been assigned address &[2],but it
has been asked that ans for b[-1],so the location -1 is not
there,we have locations from 0,1,2,3..,so none is the ans
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
How do you use a 'Local Block'?
Explain how can you check to see whether a symbol is defined?
shorting algorithmS
What do you mean by scope of a variable in c?
Explain heap and queue.
Explain can you assign a different address to an array tag?
explain what is a newline escape sequence?
Why shouldn’t I start variable names with underscores?
Explain what does a function declared as pascal do differently?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
What are the 5 organizational structures?
What are # preprocessor operator in c?
What are loops c?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What is use of bit field?