C# Tutorial for Beginners 17 : Multi Dimensional Arrays

preview_player
Показать описание
In this series we will learn C# from the basics to advanced topics. In this video we will see how to create multi dimensional arrays in C# and then how to display items from them in two ways and the limitations of those.

Tags: programming,jackedprogrammer,c#,automation,coding,code,visual studio
Рекомендации по теме
Комментарии
Автор

Thanks for the video, not quite get the nested for loop must use int2array.GetLength(1)

int[, ] int2darry = new int [, ]
{
{1, 2, 3},
{4, 5, 6},
{7, 8, 9}
};





The running result
3
3

alexmelbourne
Автор

Sorry I answer myself
int[, ] int2darry = new int [, ]
{
{1, 2, 3},
{4, 5, 6}
};




Getlength(0) = 3 columns
Getlength(1) = 2 rows

alexmelbourne
join shbcf.ru