. 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
What do you understand by normalization of pointers?
Why can't I perform arithmetic on a void* pointer?
How we can insert comments in a c program?
When should volatile modifier be used?
What are pointers in C? Give an example where to illustrate their significance.
Is calloc better than malloc?
What is typedf?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
When can you use a pointer with a function?
what is the format specifier for printing a pointer value?
Explain what does the function toupper() do?
What is hash table in c?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
What is function prototype in c with example?
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)