. 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 / sandip talukder
answer is(B). coz b holds d adrs ofa[2].so b[0]is 6. thats
why b[-1] is 3.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
how logic is used
Explain how can a program be made to print the line number where an error occurs?
What is double pointer?
What is the purpose of clrscr () printf () and getch ()?
Difference between linking and loading?
What are the ways to a null pointer can use in c programming language?
Differentiate between a structure and a union.
Explain the Difference between the New and Malloc keyword.
what are bit fields? What is the use of bit fields in a structure declaration?
How many keywords are there in c?
What is meant by gets in c?
What is #define size in c?
Do you have any idea how to compare array with pointer in c?
What is calloc in c?
What is data structure in c programming?