2 votes 2 votes Programming in C programming-in-c + – vaishali jhalani asked Nov 9, 2016 vaishali jhalani 665 views answer comment Share Follow See 1 comment See all 1 1 comment reply pC commented Nov 9, 2016 reply Follow Share 3,6,1 0 votes 0 votes Please log in or register to add a comment.
Best answer 4 votes 4 votes I think it will help you to under stand . sorry if i done some calculation mistake. Prashant. answered Nov 9, 2016 • selected Nov 9, 2016 by pC Prashant. comment Share Follow See all 8 Comments See all 8 8 Comments reply Show 5 previous comments Prashant. commented Nov 9, 2016 reply Follow Share 1.a[1] and a[1][0] address same but meaning is different a[1] talk about 2d array of size [3][2] a[1][0] talk about 1d array [2] 2. As a[0] is pointing to first 2darray , but a[0][0] pointing to first 1 d array 3. why we divided by 4 in a[1]-a[0] beacuse we skip row which is define [3] each contain 2 elements so size 2*2= 4. 1 votes 1 votes mcjoshi commented Nov 9, 2016 i edited by mcjoshi Nov 9, 2016 reply Follow Share @Anirudh, a[0] points to a 2-D array of [3][2], so scaling factor is sizeof 1-D array in first part.,i.e., $4$ and a[1][0] points to 1-D array $2$ element. so, scaling factor $=$ sizeof an element in $1-D$ array i.e., $2$B 1 votes 1 votes Prashant. commented Nov 10, 2016 reply Follow Share Yes .. 1 votes 1 votes Please log in or register to add a comment.