- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Arrays in C++|| C++ Complete Course || Beginners to Advance| Urdu/Hindi | BJM Technologies
Multi-Dimensional Arrays
A multi-dimensional array is an array of arrays.
To declare a multi-dimensional array, define the variable type, specify the name of the array followed by square brackets which specify how many elements the main array has, followed by another set of square brackets which indicates how many elements the sub-arrays have:
string letters[2][4];
As with ordinary arrays, you can insert values with an array literal - a comma-separated list inside curly braces. In a multi-dimensional array, each element in an array literal is another array literal.
string letters[2][4] = {
{ "A", "B", "C", "D" },
{ "E", "F", "G", "H" }
};
Each set of square brackets in an array declaration adds another dimension to an array. An array like the one above is said to have two dimensions.
Arrays can have any number of dimensions. The more dimensions an array has, the more complex the code becomes.
Видео Arrays in C++|| C++ Complete Course || Beginners to Advance| Urdu/Hindi | BJM Technologies канала BJM Technologies
A multi-dimensional array is an array of arrays.
To declare a multi-dimensional array, define the variable type, specify the name of the array followed by square brackets which specify how many elements the main array has, followed by another set of square brackets which indicates how many elements the sub-arrays have:
string letters[2][4];
As with ordinary arrays, you can insert values with an array literal - a comma-separated list inside curly braces. In a multi-dimensional array, each element in an array literal is another array literal.
string letters[2][4] = {
{ "A", "B", "C", "D" },
{ "E", "F", "G", "H" }
};
Each set of square brackets in an array declaration adds another dimension to an array. An array like the one above is said to have two dimensions.
Arrays can have any number of dimensions. The more dimensions an array has, the more complex the code becomes.
Видео Arrays in C++|| C++ Complete Course || Beginners to Advance| Urdu/Hindi | BJM Technologies канала BJM Technologies
c++ tutorial for beginners c++ programming in urdu c++ programming in hindi programing c++ for beginners in urdu programing c++ for beginners in hindi c++ arrays in c++ how to use arrays in c++ arrays in c++ tutorial using arrays in c++ pointers and arrays in c++ struct and arrays in c++ user input elements arrays in c++ learning arrays in c++ arrays in c++ explained arrays in c++ in hindi 2 d arrays in c++ arrays in c++ tutorial in urdu intro to arrays in c++
Комментарии отсутствуют
Информация о видео
26 ноября 2022 г. 13:22:51
00:10:32
Другие видео канала





















