C Programming - Pointers - Discussion

Discussion Forum : Pointers - General Questions (Q.No. 6)
6.
What would be the equivalent pointer expression for referring the array element a[i][j][k][l]
((((a+i)+j)+k)+l)
*(*(*(*(a+i)+j)+k)+l)
(((a+i)+j)+k+l)
((a+i)+j+k+l)
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
70 comments Page 5 of 7.

Sakthi said:   1 decade ago
Nice explanation from Ramanji & Pradeep.

Thangarasu said:   1 decade ago
Nice explanation by pradeep and ramanaji !.

Thangavel.V said:   1 decade ago
Nice Explanation pradeep..lot of thanks ...

Rajesh said:   1 decade ago
Nice Explanation by ramaji & pradeep.

Kuldeep said:   1 decade ago
As a[i] == *(a+i)
a[i][j]== *(*(a+i)+j))

Khushi said:   1 decade ago
Thanks raju naidu.

Nice explanation :).

Radhika said:   2 years ago
Thank you for explaining the answer.

Souvik maitra said:   1 decade ago
Why is it a+i? What does + denotes?

Emanuel said:   9 years ago
It should be comes as *(a+i+j+k+l).

Tamil said:   8 years ago
Thanks for the given explanation.


Post your comments here:

Your comments will be displayed after verification.