in Programming in C retagged by
354 views
1 vote
1 vote

Pointer p to an array of integers (of size 2 Bytes) is initialized to 200. What is the value of p+3?

  1. 206
  2. 203
  3. 212
  4. 204
in Programming in C retagged by
by
354 views

2 Answers

2 votes
2 votes
Best answer
$p+3$ is nothing but skipping $3$ elements form starting place because staring address is $200$

So address of $p+3=200+3*2=206$

Option $(A)$ is corrct.
selected by
1 vote
1 vote

size of element=2 B

P=200

p+1=202

p+2=204

p+3=206

 

p+i=200+2i

Ans: a)206