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

Tukaram said:   8 years ago
Thanks @Ramanaji.
(1)

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

Raj said:   8 years ago
Pointer is the value which holds the address of another variable.

Jaga said:   8 years ago
Nice explanation. Thank you all.

Sowjanya said:   8 years ago
Thanks everyone for giving the clear answers.

Sweta jain said:   8 years ago
Thanks @Ramanaji.

Baraka said:   8 years ago
Thanks @Ankit Jain.

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

Prasad said:   10 years ago
If you are passing value in expression through array then to fetch it require pointer and work on Stack mechanism and need to evaluate expression by Post order, or pre order.

Aswini .g said:   1 decade ago
Here a[0] = *(a+0).

a[0][1] = *(*(a+0)+1)).

Like wise k, l, m, n.

In orderly it follows become the answer.


Post your comments here:

Your comments will be displayed after verification.