Two Dimensional ( 2D ) and Multidimensional Arrays in CPP | C++ Video Tutorial

preview_player
Показать описание
In this c++ / cpp programming video tutorials / lecture for beginners video series, you will learn about the 2 dimensional and multidimensional arrays in detail with example.

You will learn what is a two dimensional array,how to declare a two dimensional array,how to initialize a two dimensional array,how to retrieve the values from a two dimensional array in detail with examples.

Learn Programming in HINDI at our youtube channel

Catch us on SocialMedia
Рекомендации по теме
Комментарии
Автор

The way of teaching is awesome... it's too productive & useful content for all beginners... thanks sir... for this

prakashjha
Автор

I am learning c++ by seeing your tutorials.thank a lot sir

Codeshub
Автор

Anil, the other type of declaration you mentioned in 8:31  is not working in code block IDE,   the error is saying " 'marks' does not name a type. please clarify.

kamalikaacharya
Автор

how would the user enter the number of the marks the want to cout? dont we want to use the cin>>[marks x input] [ element y input]>>;

#include <iostream>

using namespace std;

int main()
{
int marks[2][6] ;
marks[0][2] = 10;
cin >> "marks "[0]+[2];//?
return 0;
}

ClearNinjaFox
Автор

Where you initialise the arrays shouldn’t the first box say [1] because the first array’s index is 0? Or does the index numbers only work for rows of arrays?

Thank you for your vids btw, very helpful

TiaE
Автор

Hey if I wanted to multiply a 2 dimensional array by a value like 10 that has 3 rows and 4 columns with initial values present in each location, why would I set the "setw(5)" with the 5 argument instead of a (4) argument in this manipulator function.

END-ocqu
Автор

You mentioned how the first bracket determined the number of arrays, how could we label each array?
Array [0] = "Chlorine levels";
Array[1] = "Cyanauric acid levels";
Would this work?

network
Автор

@learninglad Arrays topic is over in this video, btw i want to ask you how can we print out the size of the array all the integers or the strings what ever we have defined in there. i hope my question is clear.

mohsinsharif
Автор

sir I have one doubt you don't use for loop in array but we are using for loop in array

rekhajain
Автор

If I want to access the whole elements of array in one cout statement how can I do?

muhammadsaqlainishtiaq
Автор

Hi LearningLad
I want to know how do we remove an element from the array.
For example, there are 7 numbers in our array. We have to remove the minimum one. I have successfully made a loop to find the minimum. But how do we remove it from our array?

Thankyou

nafeybz
Автор

Hey, can you explain how does and 4D Array works ? I know how the 3D works but not have an ideia about the 4D.. Tnx

joaokoritar
Автор

how are u getting that pencil pls tell me

shamnamaheen
Автор

Can we take value of array to be saved through if yes then how?

rekhajain
Автор

How we calculate expenses for different department for each month

ShahidMehmood-vksr
Автор

//Done

#include <iostream>

using namespace std;

int main()
{
int marks[7]= {12, 13, 14, 15, 16, 17, 18};

cout << "marks are : 12, 13, 14, 15, 16, 17, 18" << endl ;
cout << "ur selection : "<< marks[2];


return 0;
}

mominuber
Автор

what if i want to print both the array ?

Mohyal
Автор

How to store user input data into 2D array?

akshaydeshmukh
Автор

hi learning lad how we can ask user to give input in array for char's such as to print alphabets of name

harshgoyal
Автор

How to initialize an array if it has a large number of elements

kunalnalawade
join shbcf.ru