in Programming
231 views
0 votes
0 votes

Please Solve anyone 

in Programming
231 views

1 Answer

1 vote
1 vote

*X + 2 will dereference first then add 2 to it. 

Since X will point to the starting address of the array dereferencing it will give value 10 and adding 2 to it will give 12.

 

*(X+2), first X+2 will point to 2nd index in the array i.e. 30 dereferencing it will give value 30.

Ans: 12, 30

Related questions