. 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
Why do we use null pointer?
What is indirection? How many levels of pointers can you have?
Is null valid for pointers to functions?
Why is c so popular?
What is advantage of pointer in c?
What are # preprocessor operator in c?
What are operators in c?
What are the types of bitwise operator?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
What is a constant and types of constants in c?
Explain modulus operator. What are the restrictions of a modulus operator?
What is a const pointer?
What are the features of c language?
How can I split up a string into whitespace-separated fields?
Write a code to generate a series where the next element is the sum of last k terms.