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]
Discussion:
70 comments Page 6 of 7.
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.
a[0][1] = *(*(a+0)+1)).
Like wise k, l, m, n.
In orderly it follows become the answer.
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.
Emanuel said:
9 years ago
It should be comes as *(a+i+j+k+l).
Baraka said:
8 years ago
Thanks @Ankit Jain.
Sweta jain said:
8 years ago
Thanks @Ramanaji.
Sowjanya said:
8 years ago
Thanks everyone for giving the clear answers.
Jaga said:
8 years ago
Nice explanation. Thank you all.
Raj said:
8 years ago
Pointer is the value which holds the address of another variable.
Tamil said:
8 years ago
Thanks for the given explanation.
Tukaram said:
8 years ago
Thanks @Ramanaji.
(1)
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers