1 votes 1 votes In the above 4 Statements which would print 123 as output ? Explain also. Programming in C programming-in-c output pointers programming + – Ashish Roy 1 asked Mar 16, 2019 edited Mar 16, 2019 by Ashish Roy 1 Ashish Roy 1 1.6k views answer comment Share Follow See all 9 Comments See all 9 9 Comments reply Arjun commented Mar 16, 2019 reply Follow Share Please mention the source of question- this is not a self doubt. 0 votes 0 votes Ashish Roy 1 commented Mar 16, 2019 reply Follow Share Sir, from when the GO Hardcopy will be available again? 0 votes 0 votes Arjun commented Mar 16, 2019 reply Follow Share Will be updated this week. Probably by May. 1 votes 1 votes sandeep singh gaur commented Mar 20, 2019 i edited by sandeep singh gaur Mar 21, 2019 reply Follow Share a[5]=5[a]=*(a+5) by same analogy- a[5][5][5]=(*(*(*(a+5)+5)+5))==*(*(a+5)+5)[5] *((*(arr+5))[5]+5)==*(arr[5][5]+5)==arr[5][5][5] so my ans is option (i),(ii),(iii),(iv) 1 votes 1 votes Ashish Roy 1 commented Mar 21, 2019 reply Follow Share Can you tell me how the storage will be done as we are having array of 3 dimensions and no. is only 123. 0 votes 0 votes sandeep singh gaur commented Mar 21, 2019 reply Follow Share suppose int arr[2][3][3]={0}; total number of element in array =2*3*3 actual all element of array are stored in row major order by default in contiguous manner - 1- 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 OR 2- 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 second is good for understanding now i want to access the element in the 1st row 3rd coloum of 1st 2-d array ==arr[0][0][2] 0 votes 0 votes Ashish Roy 1 commented Mar 21, 2019 reply Follow Share Thank you so much. 0 votes 0 votes Ashish Roy 1 commented Mar 21, 2019 reply Follow Share I think all 4 statements are same. @sandeep singh gaur 0 votes 0 votes sandeep singh gaur commented Mar 21, 2019 reply Follow Share i also think verify my ans i edited 0 votes 0 votes Please log in or register to add a comment.