0 votes 0 votes I am getting 55-54 =1 as output but answer mentioned is 10 . Programming in C programming-in-c + – radha gogia asked Nov 26, 2018 radha gogia 577 views answer comment Share Follow See all 6 Comments See all 6 6 Comments reply Show 3 previous comments Shaik Masthan commented Nov 26, 2018 reply Follow Share yes mam, you can do it like that, even without converting, do it on paper as brute force approach , then you can easily understand it after that you can analysis the concept behind that 0 votes 0 votes gauravkc commented Nov 26, 2018 reply Follow Share I got it. I did like this Memory is continuous so as per the modifications in loop, the array will look like 0 1 2 3 4 5 6 7 8 9 10 11 12 ...... 0 - A[0][0] 1 - A[1][0] 2 - A[2][0] ... In this way, A[5][5] = 55 and A[4][5] = 45. Is this logic correct? @Shaik Masthan 1 votes 1 votes Shaik Masthan commented Nov 27, 2018 reply Follow Share @gauravkc yes, according to column major order those are correct 0 votes 0 votes Please log in or register to add a comment.