Computer Science, asked by paras1511, 1 month ago

In "int marks[][] - new int [5][3];" How
many elements can be stored?​

Answers

Answered by Oreki
19

\text{\large\bf Given Snippet}

    \texttt{int[][] marks = new int[5][3];}

\text{\large\bf Answer}

    \textsf{The given statement initializes a two dimensional array of \textbf{int} type.}\\\textsf{The size specified initializes 5 single dimentional arrays of size 3.}\\\textsf{\hspace{2em} Or simply,}\\\textsf{\hspace{5em} \texttt{5 * 3 = 15} elements.}

Similar questions