Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

multidimensional arrays c#

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

matrix[0,0] = 1;
matrix[0,1] = 2;
matrix[1,0] = 3;
matrix[1,1] = 4;

int[,] predefinedMatrix = new int[2,2] { { 1, 2 }, { 3, 4 } };
Source by www.learncs.org #
 
PREVIOUS NEXT
Tagged: #multidimensional #arrays
ADD COMMENT
Topic
Name
2+6 =