Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example, Given the following matrix: [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ] ] You should return[1,2,3,6,9,8,7,4,5].
B
new关键字生成的对象存在堆内存中,c1和c2指向的是不同的对象,==判断两个变量是否相等,若为基本类型,且都是数值类型返回true,引用类型则必须指向同一个对象才会返回true,故c1和从c2不相等;
c2直接赋值给c3,二者指向的是同一个堆内对象,故二者相等
m为基本类型,c1为对象,二者不相等;