单选题

一个函数定义如下: public void doSomething( in...

发布于 2022-03-03 16:11:44

一个函数定义如下:
public void doSomething( int[][] mat)
{
    for( int row = 0 row < mat.length row++)
        for(int col = 0 col < mat[0].length col++)
            mat[row][col] = mat[row][mat[0].length - 1 - col]
}

如果mat为下列2行6列的值:
1  3  5  7  9  11
0  2  4  6  8  10

那么,doSomething(mat)执行完成后,mat的值是?()

登录后免费查看答案
关注者
0
被浏览
13
知识点
面圈网VIP题库

面圈网VIP题库全新上线,海量真题题库资源。 90大类考试,超10万份考试真题开放下载啦

去下载看看