An n x n array v is defined as follows ;
v[i,j]=i-j for all i , j 1<=i <=n, i<=j <=n

The sum of the elements of the array v is-

A 0

B n-1

C n²-3n+2  

D n²(n+1)/2

Solution

Correct Answer: Option A

Practice More Questions on Our App!

Download our app for free and access thousands of MCQ questions with detailed solutions