HSBC Interview Question

How would you design a program to calculate 4*4 Matrix?

Interview Answer

Anonymous

Jun 30, 2010

Store the matrix in a two dimentional array and use a loop to keep count of iterations through the array. But what calculations do you want performed? Column or Row? Sum? Average? Do you want it in C++, VB or Java?

1