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 4 of 7.

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

Sumi said:   7 years ago
a[i] =*(a+i) .

I can't understand this, please explain.

Immanuvel said:   7 years ago
Such a wonderful explanation and I can easily understand that. Thank you @Ramanaji & @Pradeep.

Sairam said:   6 years ago
Thank you @Pradeep.

Adi said:   4 years ago
Thanks @Pradeep and @Ramanaji.

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

Deep said:   1 decade ago
Good pradeep.

Hiren savalia said:   1 decade ago
Smart 1 ...
in answer we are looking for equivalent POINTER ... and in answer there is only 1 option which has POINTER symbol that is * so select it as answer .... :)

Emel said:   1 decade ago
Nice explanation guys!

Bhava said:   1 decade ago
Since the array element is asked we have to use * operations and 4 times * is because of 4 dimensional array.


Post your comments here:

Your comments will be displayed after verification.