3 votes 3 votes Programming in C array + – Lakshman Bhaiya asked Jan 6, 2018 Lakshman Bhaiya 312 views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply Ashwin Kulkarni commented Jan 6, 2018 reply Follow Share Is it $\frac{n(n+1)}{2}$ ? 0 votes 0 votes Lakshman Bhaiya commented Jan 6, 2018 reply Follow Share yes please explain 0 votes 0 votes Ashwin Kulkarni commented Jan 6, 2018 reply Follow Share It generates a matrix which has only $n^2 - \frac{n^2-n}{2}$ entries. Try substituting values and build matrix of size 2 and 3 you will get idea about the equation which i have written above. each matrix in the Question won’t allow elements at exact $\frac{n^2-n}{2}$ places. 2 votes 2 votes Please log in or register to add a comment.