diamond diamond

diamond diamond

  • NA
  • 133
  • 55.4k

Shift 2 dimension array rows

Aug 27 2013 10:58 PM
Hi all,

I have a 2 dimensional array, I want shift the value of rows :

int [,] s=new int [2,2];

s= {(1,0,0),(0,1,0),(0,0,1)}

when I shift this array rows like below:

s={(0,1,0),(0,0,1),(0,0,0)}

is it possible by array.copy? and how?

Answers (5)