. 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
What is wild pointer in c with example?
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
What does 4d mean in c?
How can I discover how many arguments a function was actually called with?
Write a program to print factorial of given number using recursion?
What is a pointer variable in c language?
What is the mean of function?
what are the advantages of a macro over a function?
can anyone suggest some site name..where i can get some good data structure puzzles???
Describe the difference between = and == symbols in c programming?
What do you mean by dynamic memory allocation in c?
Why do we need arrays in c?
Is array name a pointer?
How we can insert comments in a c program?
How can I change the size of the dynamically allocated array?