Consider the following programmain(){int a[5]={1,3,6,7,0};int *b;b=&a[2];}the value of b[-1] isa.1b.3c.-6d. none

B
This question is related to TCS Interview

Showing Answers 1 - 1 of 1 Answers

karna

  • Jul 3rd, 2006
 

*b-- is 3

but *b-- is different from b[-1].

so the answer is D(none)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.