5 votes 5 votes Q. A p×p array ‘M’ is defined as follows:- M[a, b] = a – b for all a,b, 1 ≤ a, b ≤ p. The sum of elements of the array M is (a) p – 1 (b) p2 – 3p + 2 (c) 0 (d) p2(p+1)/ 2 Programming in C array + – Naveen Kumar 3 asked Jun 7, 2017 Naveen Kumar 3 596 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 9 votes 9 votes To solve these type of question,,,take one example let take 3×3 array so M[1,1] =0 M[1,2] =-1 M[1,3] =-2 M[2,1] =1 M[2,2] =0 M[2,3] =-1 M[3,1] =2 M[3,2] =1 M[3,3] =0 here we get sum of elements of the array M =0 and check option (put p=3) so (c) is correct pawan kumarln answered Jun 7, 2017 • selected Jun 24, 2017 by pawan kumarln pawan kumarln comment Share Follow See 1 comment See all 1 1 comment reply Naveen Kumar 3 commented Jun 7, 2017 reply Follow Share Very good alternative way to tackle questions like this! 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes The answer for the above questions is C take any simple matrix and form the matrix with the help of given condition and sum them all you will get 0 VenTos answered Jun 9, 2017 VenTos comment Share Follow See all 0 reply Please log in or register to add a comment.