itgle.com

Whichcodefragmentswillsucceedininitializinga&ensWhichcodefragmentswillsucceedininitializingatwo-dimensionalarraynamedtabwithasizethatwillcausetheexpressiontab[3][2]toaccessavalidelement?()CODEFRAGMENTa:int[][]tab={{0,0,0},{0,0,0}};CODEFRAGMENTb:inttab[][]

题目
Whichcodefragmentswillsucceedininitializinga&ens

Whichcodefragmentswillsucceedininitializingatwo-dimensionalarraynamedtabwithasizethatwillcausetheexpressiontab[3][2]toaccessavalidelement?()

CODEFRAGMENTa:int[][]tab={{0,0,0},{0,0,0}};

CODEFRAGMENTb:inttab[][]=newint[4][];for(inti=0;i

CODEFRAGMENTc:inttab[][]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};

CODEFRAGMENTd:inttab[3][2];

CODEFRAGMENTe:int[]tab[]={{0,0,0},{0,0,0},{0,0,0},{0,0,0}};


相似考题