. 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 / sujay
I think the answer is none
bcoz b is a pointer var so, it points to an ad location
the answer is not any of the given options
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
How are Structure passing and returning implemented by the complier?
Write a code of a general series where the next element is the sum of last k terms.
What are header files why are they important?
What is the purpose of void in c?
What are the types of variables in c?
What is a MAC Address?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
What is function pointer c?
What is difference between main and void main?
Why do we use int main?
Why calloc is better than malloc?
What is s in c?
What are the modifiers available in c programming language?
can we have joblib in a proc ?