0 0 votes let suppose address of first index of array is n and size of each block of array is u. then the index of second element is a+u. let suppose the array has m elements. what will be the address of the third element of another array of same size, if it's address of second last element is (n - u). Programming in C programming-in-c array + – srijankarak_123 633 views answer comment Share Follow Print See all 2 Comments 2 2 Comments reply Shaik Masthan commented May 7, 2024 i edited by Shaik Masthan May 7, 2024 reply Follow flag n-(m-1)u is starting element address. Therefore n-(m-3) is the 3rd element address. let suppose address of first index of array is n and size of each block of array is u. then the index of second element is a+u. I hope index of second element is n+u instead of a+u. 0 0 replyShare srijankarak_123 commented May 7, 2024 reply Follow flag yes!!!..thank you 0 0 replyShare Please log in or register to add a comment.
0 0 votes Let x be the base address of second array. Give, x + (m - 2) u = n - u=> x = n - mu + uAddress of 3rd element = x + 2u => n - (m - 3)*u nothingToDo answered Jun 25, 2024 nothingToDo comment Share Follow 0 reply Please log in or register to add a comment.