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.

Deep said:   1 decade ago
Good pradeep.

Riya said:   1 decade ago
Thank you Pradeep.

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

Neeti said:   1 decade ago
I also agree with Ramanaji.

Suma sahithi said:   1 decade ago
Array itself is a pointer. If we creat an array it defaultly takes address of 1st element, so to take value in that address we should place * before it. As it is a 4 dimentional array we should place * before each one.

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

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.

Emel said:   1 decade ago
Nice explanation guys!

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 .... :)

Naveen said:   1 decade ago
Thanks to all.


Post your comments here:

Your comments will be displayed after verification.